Allow creation of BI_BITFIELDS DIBSections since they're not really
compressed
Dmitry Timoshkov
dmitry at baikal.ru
Mon Jan 2 02:24:08 CST 2006
Hello,
Changelog:
Ulrich Czekalla <ulrich at codeweavers.com>
- allow creation of BI_BITFIELDS DIBSections since they're not
really compressed.
--- cvs/hq/wine/dlls/gdi/dib.c 2005-12-13 19:54:09.000000000 +0800
+++ wine/dlls/gdi/dib.c 2006-01-02 16:02:21.000000000 +0800
@@ -1148,6 +1148,12 @@ HBITMAP DIB_CreateDIBSection(HDC hdc, co
&planes, &bpp, &compression, &sizeImage )) == -1))
return 0;
+ if (compression && compression != BI_BITFIELDS)
+ {
+ TRACE("can't create a compressed (%lu) dibsection\n", compression);
+ return 0;
+ }
+
if (!(dib = HeapAlloc( GetProcessHeap(), 0, sizeof(*dib) ))) return 0;
TRACE("format (%ld,%ld), planes %d, bpp %d, size %ld, %s\n",
More information about the wine-patches
mailing list