From: Bartosz Kosiorek gang65@poczta.onet.pl
--- dlls/gdiplus/graphicspath.c | 4 ++-- dlls/gdiplus/tests/graphicspath.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c index b1e417842f8..805068c6154 100644 --- a/dlls/gdiplus/graphicspath.c +++ b/dlls/gdiplus/graphicspath.c @@ -2037,8 +2037,8 @@ static void widen_cap(const GpPointF *endpoint, const GpPointF *nextpoint, } else if (cap == LineCapArrowAnchor) { - extend_dx = -3.0 * extend_dx; - extend_dy = -3.0 * extend_dy; + extend_dx = -2.0 * extend_dx; + extend_dy = -2.0 * extend_dy; }
if (add_first_points) diff --git a/dlls/gdiplus/tests/graphicspath.c b/dlls/gdiplus/tests/graphicspath.c index 89a7dd786de..1f8501fe6a1 100644 --- a/dlls/gdiplus/tests/graphicspath.c +++ b/dlls/gdiplus/tests/graphicspath.c @@ -1698,10 +1698,10 @@ static path_test_t widenline_capdiamondanchor_path[] = { };
static path_test_t widenline_caparrowanchor_path[] = { - {15.0, 5.0, PathPointTypeStart, 0, 1}, /*0*/ - {40.0, 5.0, PathPointTypeLine, 0, 1}, /*1*/ - {40.0, 15.0, PathPointTypeLine, 0, 1}, /*2*/ - {15.0, 15.0, PathPointTypeLine|PathPointTypeCloseSubpath, 0, 1}, /*3*/ + {15.0, 5.0, PathPointTypeStart, 0, 0}, /*0 but got PathPointTypeStart (20.000000,5.000000)*/ + {40.0, 5.0, PathPointTypeLine, 0, 0}, /*1 but got PathPointTypeLine (35.000000,5.000000)*/ + {40.0, 15.0, PathPointTypeLine, 0, 0}, /*2 but got PathPointTypeLine (35.000000,15.000000)*/ + {15.0, 15.0, PathPointTypeLine|PathPointTypeCloseSubpath, 0, 0}, /*3 but got (20.000000,15.000000)*/ {5.0, 10.0, PathPointTypeStart, 0, 0}, /*4*/ {22.320507, 0.0, PathPointTypeLine, 0, 0}, /*5*/ {22.320507, 20.0, PathPointTypeLine|PathPointTypeCloseSubpath, 0, 0}, /*6*/ @@ -1875,7 +1875,7 @@ static void test_widen_cap(void) continue; } } - + /* TODO LineCapArrowAnchor */ ok_path_fudge(path, caps[i].expected, caps[i].expected_size, FALSE, 0.000005);
GdipDeletePen(pen);