Fixed garbage in toolbar buttons
Carlos
clozano at andago.com
Sun Oct 13 11:57:32 CDT 2002
Changelog:
* Changed SRCPAINT to SRCCOPY, the first time what
it paints in hImageDC.
--
____________________________________________________
___ _____ _ ____
/ __// _ // / / o) clozano
/ /_ / /_/ // /_ / \ @andago.com
/___//_/ /_//___//__)
____________________________________________________
-------------- next part --------------
Index: dlls/comctl32/imagelist.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/imagelist.c,v
retrieving revision 1.61
diff -u -r1.61 imagelist.c
--- dlls/comctl32/imagelist.c 24 Sep 2002 18:26:42 -0000 1.61
+++ dlls/comctl32/imagelist.c 13 Oct 2002 16:50:23 -0000
@@ -1135,7 +1135,11 @@
}
} else if (himl->hbmMask) {
BitBlt( hImageDC, 0, 0, cx, cy, hMaskListDC, lx, ly, SRCAND );
- BitBlt( hImageDC, 0, 0, cx, cy, hImageListDC, lx, ly, SRCPAINT );
+ if (!bIsTransparent && himl->hbmMask) {
+ BitBlt( hImageDC, 0, 0, cx, cy, hImageListDC, lx, ly, SRCPAINT );
+ } else {
+ BitBlt( hImageDC, 0, 0, cx, cy, hImageListDC, lx, ly, SRCCOPY );
+ }
} else {
/* the image is opaque, just copy it */
TRACE(" - Image is opaque\n");
More information about the wine-patches
mailing list