Module: wine Branch: oldstable Commit: 37abfb6774d84c7ce69320a2f0f6e7eb24902db4 URL: https://source.winehq.org/git/wine.git/?a=commit;h=37abfb6774d84c7ce69320a2f...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Fri May 11 11:01:45 2018 +0300
gdiplus: Fix the number of transformed points for squared caps.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Vincent Povirk vincent@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit aad491b0cf8987355469abbbeb034243e2b95551) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
dlls/gdiplus/graphics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 4aa8831..21eded2 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -1593,9 +1593,9 @@ static void draw_cap(GpGraphics *graphics, COLORREF color, GpLineCap cap, REAL s ptf[3].X = x2 - dbig; ptf[2].X = x2 + dsmall;
- gdip_transform_points(graphics, WineCoordinateSpaceGdiDevice, CoordinateSpaceWorld, ptf, 3); + gdip_transform_points(graphics, WineCoordinateSpaceGdiDevice, CoordinateSpaceWorld, ptf, 4);
- round_points(pt, ptf, 3); + round_points(pt, ptf, 4);
Polygon(graphics->hdc, pt, 4);