Huw Davies : winex11: Initialise the dib color table.
Alexandre Julliard
julliard at winehq.org
Wed Oct 5 18:03:57 CDT 2011
Module: wine
Branch: master
Commit: 82f4538c552bebd361cc9a8ecfa0e37b9c2db2b0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=82f4538c552bebd361cc9a8ecfa0e37b9c2db2b0
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Oct 4 17:48:23 2011 -0500
winex11: Initialise the dib color table.
---
dlls/winex11.drv/mouse.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c
index 0ba57d1..033f94c 100644
--- a/dlls/winex11.drv/mouse.c
+++ b/dlls/winex11.drv/mouse.c
@@ -726,6 +726,15 @@ static Cursor create_xcursor_cursor( HDC hdc, const ICONINFOEXW *iinfo, HANDLE i
goto cleanup;
}
info->bmiHeader.biBitCount = 1;
+ info->bmiColors[0].rgbRed = 0;
+ info->bmiColors[0].rgbGreen = 0;
+ info->bmiColors[0].rgbBlue = 0;
+ info->bmiColors[0].rgbReserved = 0;
+ info->bmiColors[1].rgbRed = 0xff;
+ info->bmiColors[1].rgbGreen = 0xff;
+ info->bmiColors[1].rgbBlue = 0xff;
+ info->bmiColors[1].rgbReserved = 0;
+
mask_size = ((width + 31) / 32 * 4) * height; /* width_bytes * height */
info->bmiHeader.biSizeImage = mask_size;
hbmMask = CreateDIBSection( hdc, info, DIB_RGB_COLORS, (VOID **) &mask_bits, NULL, 0);
More information about the wine-cvs
mailing list