Module: wine Branch: master Commit: 9a5375989d43a08a6cf276e08b8deff9d2a9fffc URL: http://source.winehq.org/git/wine.git/?a=commit;h=9a5375989d43a08a6cf276e08b...
Author: Vincent Povirk vincent@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);