gdiplus: Remove not used LineCustomCap parameter.

This commit is contained in:
Bartosz Kosiorek 2022-11-07 17:35:53 +01:00 committed by Alexandre Julliard
parent 742c315702
commit bc8ced226a

View file

@ -1876,7 +1876,7 @@ static void widen_joint(const GpPointF *p1, const GpPointF *p2, const GpPointF *
}
static void widen_cap(const GpPointF *endpoint, const GpPointF *nextpoint,
REAL pen_width, GpLineCap cap, GpCustomLineCap *custom, int add_first_points,
REAL pen_width, GpLineCap cap, int add_first_points,
int add_last_point, path_list_node_t **last_point)
{
switch (cap)
@ -2097,8 +2097,8 @@ static void add_anchor(const GpPointF *endpoint, const GpPointF *nextpoint,
}
static void widen_open_figure(const GpPointF *points, int start, int end,
GpPen *pen, REAL pen_width, GpLineCap start_cap, GpCustomLineCap *start_custom,
GpLineCap end_cap, GpCustomLineCap *end_custom, path_list_node_t **last_point)
GpPen *pen, REAL pen_width, GpLineCap start_cap,
GpLineCap end_cap, path_list_node_t **last_point)
{
int i;
path_list_node_t *prev_point;
@ -2109,21 +2109,21 @@ static void widen_open_figure(const GpPointF *points, int start, int end,
prev_point = *last_point;
widen_cap(&points[start], &points[start+1],
pen_width, start_cap, start_custom, FALSE, TRUE, last_point);
pen_width, start_cap, FALSE, TRUE, last_point);
for (i=start+1; i<end; i++)
widen_joint(&points[i-1], &points[i], &points[i+1],
pen, pen_width, last_point);
widen_cap(&points[end], &points[end-1],
pen_width, end_cap, end_custom, TRUE, TRUE, last_point);
pen_width, end_cap, TRUE, TRUE, last_point);
for (i=end-1; i>start; i--)
widen_joint(&points[i+1], &points[i], &points[i-1],
pen, pen_width, last_point);
widen_cap(&points[start], &points[start+1],
pen_width, start_cap, start_custom, TRUE, FALSE, last_point);
pen_width, start_cap, TRUE, FALSE, last_point);
prev_point->next->type = PathPointTypeStart;
(*last_point)->type |= PathPointTypeCloseSubpath;
@ -2267,8 +2267,8 @@ static void widen_dashed_figure(GpPath *path, int start, int end, int closed,
tmp_points[num_tmp_points].Y = path->pathdata.Points[i].Y + segment_dy * segment_pos / segment_length;
widen_open_figure(tmp_points, 0, num_tmp_points, pen, pen_width,
draw_start_cap ? pen->startcap : LineCapFlat, pen->customstart,
LineCapFlat, NULL, last_point);
draw_start_cap ? pen->startcap : LineCapFlat,
LineCapFlat, last_point);
draw_start_cap = 0;
num_tmp_points = 0;
}
@ -2301,8 +2301,8 @@ static void widen_dashed_figure(GpPath *path, int start, int end, int closed,
{
/* last dash overflows last segment */
widen_open_figure(tmp_points, 0, num_tmp_points-1, pen, pen_width,
draw_start_cap ? pen->startcap : LineCapFlat, pen->customstart,
closed ? LineCapFlat : pen->endcap, pen->customend, last_point);
draw_start_cap ? pen->startcap : LineCapFlat,
closed ? LineCapFlat : pen->endcap, last_point);
}
heap_free(dash_pattern_scaled);
@ -2377,7 +2377,7 @@ GpStatus WINGDIPAPI GdipWidenPath(GpPath *path, GpPen *pen, GpMatrix *matrix,
if (pen->dash != DashStyleSolid)
widen_dashed_figure(flat_path, subpath_start, i, 0, pen, pen_width, &last_point);
else
widen_open_figure(flat_path->pathdata.Points, subpath_start, i, pen, pen_width, pen->startcap, pen->customstart, pen->endcap, pen->customend, &last_point);
widen_open_figure(flat_path->pathdata.Points, subpath_start, i, pen, pen_width, pen->startcap, pen->endcap, &last_point);
}
}