winex11.drv: GetDeviceCaps(hdc,
NUMCOLORS) must return 1 (not -1) if more than 256 colors. Bug 7757
Daniel Mario Vega
dv5a at dc.uba.ar
Sun Mar 18 14:03:07 CDT 2007
---
dlls/winex11.drv/init.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winex11.drv/init.c b/dlls/winex11.drv/init.c
index cf23866..a60174d 100644
--- a/dlls/winex11.drv/init.c
+++ b/dlls/winex11.drv/init.c
@@ -213,8 +213,8 @@ INT X11DRV_GetDeviceCaps( X11DRV_PDEVICE *physDev, INT cap )
case NUMCOLORS:
/* MSDN: Number of entries in the device's color table, if the device has
* a color depth of no more than 8 bits per pixel.For devices with greater
- * color depths, -1 is returned. */
- return (screen_depth > 8) ? -1 : (1 << screen_depth);
+ * color depths, 1 is returned. */
+ return (screen_depth > 8) ? 1 : (1 << screen_depth);
case PDEVICESIZE:
return sizeof(X11DRV_PDEVICE);
case CURVECAPS:
--
1.4.4.4
More information about the wine-patches
mailing list