[02/10] gdiplus: If source and destination rectangles differ it's not a reason to fallback to software blitting.

Dmitry Timoshkov dmitry at baikal.ru
Thu Aug 16 23:39:45 CDT 2012


Both StretchBlt and GdiAlphaBlend handle that case just fine.
---
 dlls/gdiplus/graphics.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index c8fad68..07301d7 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -3094,8 +3094,6 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
 
         if (imageAttributes ||
             (graphics->image && graphics->image->type == ImageTypeBitmap) ||
-            ptf[1].Y != ptf[0].Y || ptf[2].X != ptf[0].X ||
-            ptf[1].X - ptf[0].X != srcwidth || ptf[2].Y - ptf[0].Y != srcheight ||
             srcx < 0 || srcy < 0 ||
             srcx + srcwidth > bitmap->width || srcy + srcheight > bitmap->height)
             use_software = 1;
-- 
1.7.11.5




More information about the wine-patches mailing list