OlePictureImpl_Load: use RGB colors

Walt Ogburn reuben at ugcs.caltech.edu
Fri Nov 5 19:08:55 CST 2004


To use DIB_PAL_COLORS, the caller has to define the palette - not sure if
the original author intended to do this, but it's not there.
DIB_RGB_COLORS is always OK.

- Walter


Changelog:
In OlePictureImpl_Load, always use DIB_RGB_COLORS because no indexed
palette has been defined.


Index: dlls/oleaut32/olepicture.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/olepicture.c,v
retrieving revision 1.47
diff -u -r1.47 olepicture.c
--- dlls/oleaut32/olepicture.c  18 Oct 2004 22:39:22 -0000      1.47
+++ dlls/oleaut32/olepicture.c  6 Nov 2004 00:55:45 -0000
@@ -1293,7 +1293,7 @@
        CBM_INIT,
        xbuf+bfh->bfOffBits,
        bi,
-       (bi->bmiHeader.biBitCount<=8)?DIB_PAL_COLORS:DIB_RGB_COLORS
+       DIB_RGB_COLORS
     );
     DeleteDC(hdcref);
     This->desc.picType = PICTYPE_BITMAP;



More information about the wine-patches mailing list