gdiplus: Fix LineCapTriangle path widening.
Signed-off-by: Jeff Smith <whydoubt@gmail.com> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
26ffbf6b8c
commit
b3a68db9a0
|
@ -1976,7 +1976,7 @@ static void widen_cap(const GpPointF *endpoint, const GpPointF *nextpoint,
|
||||||
*last_point = add_path_list_node(*last_point, endpoint->X - dx,
|
*last_point = add_path_list_node(*last_point, endpoint->X - dx,
|
||||||
endpoint->Y - dy, PathPointTypeLine);
|
endpoint->Y - dy, PathPointTypeLine);
|
||||||
}
|
}
|
||||||
if (add_last_point)
|
if (add_first_points || add_last_point)
|
||||||
add_bevel_point(endpoint, nextpoint, pen, 0, last_point);
|
add_bevel_point(endpoint, nextpoint, pen, 0, last_point);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1283,8 +1283,8 @@ static path_test_t widenline_captriangle_path[] = {
|
||||||
{55.0, 10.0, PathPointTypeLine, 0, 0}, /*2*/
|
{55.0, 10.0, PathPointTypeLine, 0, 0}, /*2*/
|
||||||
{50.0, 15.0, PathPointTypeLine, 0, 0}, /*3*/
|
{50.0, 15.0, PathPointTypeLine, 0, 0}, /*3*/
|
||||||
{5.0, 15.0, PathPointTypeLine, 0, 0}, /*4*/
|
{5.0, 15.0, PathPointTypeLine, 0, 0}, /*4*/
|
||||||
{0.0, 10.0, PathPointTypeLine, 0, 1}, /*5*/
|
{0.0, 10.0, PathPointTypeLine, 0, 0}, /*5*/
|
||||||
{5.0, 5.0, PathPointTypeLine|PathPointTypeCloseSubpath, 0, 2} /*6*/
|
{5.0, 5.0, PathPointTypeLine|PathPointTypeCloseSubpath, 0, 0} /*6*/
|
||||||
};
|
};
|
||||||
|
|
||||||
static path_test_t widenline_capsquareanchor_path[] = {
|
static path_test_t widenline_capsquareanchor_path[] = {
|
||||||
|
@ -1381,7 +1381,7 @@ static void test_widen_cap(void)
|
||||||
{ LineCapRound, widenline_capround_path,
|
{ LineCapRound, widenline_capround_path,
|
||||||
ARRAY_SIZE(widenline_capround_path) },
|
ARRAY_SIZE(widenline_capround_path) },
|
||||||
{ LineCapTriangle, widenline_captriangle_path,
|
{ LineCapTriangle, widenline_captriangle_path,
|
||||||
ARRAY_SIZE(widenline_captriangle_path), TRUE },
|
ARRAY_SIZE(widenline_captriangle_path) },
|
||||||
{ LineCapNoAnchor, widenline_capflat_path,
|
{ LineCapNoAnchor, widenline_capflat_path,
|
||||||
ARRAY_SIZE(widenline_capflat_path) },
|
ARRAY_SIZE(widenline_capflat_path) },
|
||||||
{ LineCapSquareAnchor, widenline_capsquareanchor_path,
|
{ LineCapSquareAnchor, widenline_capsquareanchor_path,
|
||||||
|
|
Loading…
Reference in New Issue