Vincent Povirk : gdiplus: Fix an overzealous optimization.

Alexandre Julliard julliard at winehq.org
Fri Mar 14 15:39:29 CDT 2014


Module: wine
Branch: master
Commit: 9a5375989d43a08a6cf276e08b8deff9d2a9fffc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9a5375989d43a08a6cf276e08b8deff9d2a9fffc

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Thu Mar 13 16:18:50 2014 -0500

gdiplus: Fix an overzealous optimization.

---

 dlls/gdiplus/graphics.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index a570192..d16c6c1 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2807,7 +2807,7 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
 
     ptf[3].X = ptf[2].X + ptf[1].X - ptf[0].X;
     ptf[3].Y = ptf[2].Y + ptf[1].Y - ptf[0].Y;
-    if (!srcwidth || !srcheight || ptf[3].X == ptf[0].X || ptf[3].Y == ptf[0].Y)
+    if (!srcwidth || !srcheight || (ptf[3].X == ptf[0].X && ptf[3].Y == ptf[0].Y))
         return Ok;
     transform_and_round_points(graphics, pti, ptf, 4);
 




More information about the wine-cvs mailing list