USER32: When loading a bitmap into a dibsection the result cannot
be compressed
Mike McCormack
mike at codeweavers.com
Mon Jan 3 23:51:15 CST 2005
ChangeLog:
Ulrich Czekalla <ulrich at codeweavers.com>
* When loading a bitmap into a dibsection the result cannot be compressed
-------------- next part --------------
Index: windows/cursoricon.c
===================================================================
RCS file: /home/wine/wine/windows/cursoricon.c,v
retrieving revision 1.80
diff -u -r1.80 cursoricon.c
--- windows/cursoricon.c 23 Dec 2004 17:21:05 -0000 1.80
+++ windows/cursoricon.c 4 Jan 2005 05:50:33 -0000
@@ -2131,6 +2131,7 @@
if (loadflags & LR_CREATEDIBSECTION) {
DIBSECTION dib;
+ fix_info->bmiHeader.biCompression = 0; /* DIBSection can't be compressed */
hbitmap = CreateDIBSection(screen_dc, fix_info, DIB_RGB_COLORS, NULL, 0, 0);
GetObjectA(hbitmap, sizeof(DIBSECTION), &dib);
SetDIBits(screen_dc, hbitmap, 0, dib.dsBm.bmHeight, bits, info,
More information about the wine-patches
mailing list