Avoid DrawDibDraw corruption with SetStretchBltMode

Russ matchmovie at yahoo.com
Sat Dec 4 22:07:06 CST 2004


I can now confirm that the earlier proposed patch (below again) functions as
expected not just in external testing, but when installed into WINE. Tnx, Russ

--- drawdib.c	2004-12-03 09:03:50.754811840 -0500
+++ drawdib1.c	2004-12-03 09:07:45.648102632 -0500
@@ -369,6 +369,8 @@
          SelectPalette(hdc, whdd->hpal, FALSE);
     }
 
+    if (lpbi->biBitCount != 1)
+	SetStretchBltMode(whdd->hdc, COLORONCOLOR);
     if (!(StretchBlt(whdd->hdc, xDst, yDst, dxDst, dyDst, whdd->hMemDC, xSrc,
ySrc, dxSrc, dySrc, SRCCOPY)))
         ret = FALSE;
     





__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the wine-patches mailing list