Module: wine Branch: master Commit: 3d8bd665116e2a804c9ea2f25250c1827049ba8d URL: https://source.winehq.org/git/wine.git/?a=commit;h=3d8bd665116e2a804c9ea2f25...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Fri May 11 11:01:48 2018 +0300
gdiplus: Draw using actual point data for custom 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
---
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 a7e5c80..5fdbaf1 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -1709,9 +1709,9 @@ static void draw_cap(GpGraphics *graphics, COLORREF color, GpLineCap cap, REAL s GdipTranslateMatrix(&matrix, x2, y2, MatrixOrderAppend); GdipTransformMatrixPoints(&matrix, custptf, count);
- gdip_transform_points(graphics, WineCoordinateSpaceGdiDevice, CoordinateSpaceWorld, ptf, 3); + gdip_transform_points(graphics, WineCoordinateSpaceGdiDevice, CoordinateSpaceWorld, custptf, count);
- round_points(pt, ptf, 3); + round_points(custpt, custptf, count);
for(i = 0; i < count; i++) tp[i] = convert_path_point_type(custom->pathdata.Types[i]);