Fix incorrect coordinates for painting mask.
authorKevin Koltzau <kevin@plop.org>
Tue, 3 Feb 2004 21:28:57 +0000 (21:28 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 3 Feb 2004 21:28:57 +0000 (21:28 +0000)
graphics/bitblt.c

index 9e3d62faef843b2987c3517726b38455b29f5f53..1d9e8bfb01fe5b5e0d9b461fb5bdfed3055bd829 100644 (file)
@@ -366,7 +366,7 @@ BOOL WINAPI GdiTransparentBlt( HDC hdcDest, int xDest, int yDest, int widthDest,
     }
 
     /* Replace non-transparent area on destination with black */
-    if(!BitBlt(hdcDest, 0, 0, widthDest, heightDest, hdcMask, 0, 0, SRCAND)) {
+    if(!BitBlt(hdcDest, xDest, yDest, widthDest, heightDest, hdcMask, 0, 0, SRCAND)) {
         TRACE("Failed to clear destination area\n");
         goto error;
     }