A patch for supporting TCanvas.Draw a TBitmap in pf8bit TBitmap.PixelFormat on windows and gtk2
Original Reporter info from Mantis: sainimu78
-
Reporter name: fantangshan
Original Reporter info from Mantis: sainimu78
- Reporter name: fantangshan
Description:
TCanvas.Draw works wrong if set the TBitmap.PixelFormat := pf8bit.
So I creat a patch to solve this.
This may cause TCanvas.Draw pf8bit bitmap wrong on other platform. I hope this patch can give some clues to fix the problem of supporting gray image on other platforms.
Mantis conversion info:
- Mantis ID: 32878
- OS: linux, win32, win64
- Platform: x86_64, i386
- Version: 1.9 (SVN)
- Fixed in version: 1.9 (SVN)
- Fixed in revision: 56872 (#84369842)
- Target version: 1.8