http://bugs.winehq.org/show_bug.cgi?id=7757
Summary: GetDeviceCaps(NUMCOLORS) returns wrong value: -1 Product: Wine Version: unspecified Platform: Other OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-x11driver AssignedTo: wine-bugs@winehq.org ReportedBy: dv5a@dc.uba.ar
The function GetDeviceCaps(NUMCOLORS) must return 1 if device uses more than 256 colors (see http://msdn.microsoft.com/library/en-us/gdi/devcons_88s3.asp ) But is return -1. This is wrong.
http://source.winehq.org/source/dlls/winex11.drv/init.c#L213http://source.wi...
Fix is trivial :
216 * color depths, 1 is returned. */ 217 return (screen_depth > 8) ? 1 : (1 << screen_depth);
This bug makes COMPUMAP application (a street map of Buenos Aires) crash on printing.