http://bugs.winehq.org/show_bug.cgi?id=4277
Summary: GetPixel() returns wrong value for monochrome bitmaps Product: Wine Version: CVS Platform: Other OS/Version: other Status: NEW Keywords: download, source Severity: normal Priority: P2 Component: wine-x11driver AssignedTo: wine-bugs@winehq.org ReportedBy: hallo@michael-kaufmann.ch
The GDI function GetPixel() should return 0x00ffffff for white pixels in a monochrome bitmap. Wine returns 0x00010000 on my system.
GetPixel() is implemented in dlls/x11drv/graphics.c. The function calls XGetPixel() and then passes the pixel value to X11DRV_PALETTE_ToLogical in dlls/x11drv/palette.c. Probably the bug is in this function.
I've created an example program and hope that somebody will try to fix this bug.