PATCH: olepictures black & white
Marcus Meissner
marcus at jet.franken.de
Sun Aug 19 04:07:50 CDT 2001
Hi,
Somehow the loaded JPEGs are now black & white in the IPicture implementation.
Exchanging CreateCompatibleDC(0) by CreateDCA("DISPLAY",0,0,0); makes
them colored again.
But I am not sure whether the problem itself was a bug on my side, or
on the WINE side...
Ciao, Marcus
Changelog:
replaced CreateCompatibleDC by CreateDC or we get black & white
images.
Index: olepicture.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/olepicture.c,v
retrieving revision 1.9
diff -u -r1.9 olepicture.c
--- olepicture.c 2001/08/09 21:35:59 1.9
+++ olepicture.c 2001/08/19 09:10:40
@@ -882,7 +882,7 @@
HeapFree(GetProcessHeap(),0,samprow);
jpeg_finish_decompress(&jd);
jpeg_destroy_decompress(&jd);
- hdcref = CreateCompatibleDC(0);
+ hdcref = CreateDCA("DISPLAY",NULL,NULL,NULL);
This->desc.u.bmp.hbitmap=CreateDIBitmap(
hdcref,
&bmi,
@@ -910,7 +910,7 @@
/* Does not matter whether this is a coreheader or not, we only use
* components which are in both
*/
- hdcref = CreateCompatibleDC(0);
+ hdcref = CreateDCA("DISPLAY",NULL,NULL,NULL);
This->desc.u.bmp.hbitmap = CreateDIBitmap(
hdcref,
&(bi->bmiHeader),
More information about the wine-patches
mailing list