winex11.drv: For consistency with GetDeviceCaps convert 24 to 32 bpp depth when converting a pixmap to a DIB
Dmitry Timoshkov
dmitry at codeweavers.com
Fri Jan 25 09:07:23 CST 2008
Hello,
this patch fixes te crash reporetd in the bug 11295.
Changelog:
winex11.drv: For consistency with GetDeviceCaps convert 24 to 32 bpp depth
when converting a pixmap to a DIB.
---
diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c
index a95783e..b0d5a03 100644
--- a/dlls/winex11.drv/dib.c
+++ b/dlls/winex11.drv/dib.c
@@ -4849,6 +4849,9 @@ HGLOBAL X11DRV_DIB_CreateDIBFromPixmap(Pixmap pixmap, HDC hdc)
wine_tsx11_unlock();
if (!depth) return 0;
+ /* Do this for consistency with x11drv_main.c */
+ if (depth == 24) depth = 32;
+
TRACE("\tPixmap properties: width=%d, height=%d, depth=%d\n",
width, height, depth);
More information about the wine-patches
mailing list