[Bug 4277] GetPixel() returns wrong value for monochrome bitmaps

Wine Bugs wine-bugs at winehq.org
Wed Aug 8 11:48:19 CDT 2007


http://bugs.winehq.org/show_bug.cgi?id=4277





------- Additional Comments From the3dfxdude at gmail.com  2007-08-08 11:48 -------
The ToLogical function is not adequate for what Get/Set Pixel needs here. For
one, it queries the screen_depth when it should be querying the bitmap's depth.
So what it is doing is returning a direct RGB as if it's >8bpp and not
performing the palette lookup. Even if you fix that there are more issues. I
tried looking at the PHYSBITMAP's colorMap and it's not set. So it looks
dependent on the device. Somebody with knowledge of winex11 will probably need
to fix it appropriately.

Just way of information, the dib engine I'm writing doesn't have this problem,
but this app doesn't create a dib. Winex11 still needs to be fixed.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list