mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 07:44:47 +00:00
gdiplus: Fix position of Custom Cap when Scale is different that 1.
This commit is contained in:
parent
be7db8457d
commit
0fd51346e1
|
@ -2128,13 +2128,13 @@ static void add_anchor(const GpPointF *endpoint, const GpPointF *nextpoint,
|
|||
TRACE("GpCustomLineCap fill: %d basecap: %d inset: %f join: %d scale: %f pen_width:%f\n",
|
||||
custom->fill, custom->basecap, custom->inset, custom->join, custom->scale, pen_width);
|
||||
|
||||
/* Coordination where cap needs to be drawn */
|
||||
posx = endpoint->X - pen_width * segment_dx / segment_length;
|
||||
posy = endpoint->Y - pen_width * segment_dy / segment_length;
|
||||
|
||||
sina = -pen_width * custom->scale * segment_dx / segment_length;
|
||||
cosa = pen_width * custom->scale * segment_dy / segment_length;
|
||||
|
||||
/* Coordination where cap needs to be drawn */
|
||||
posx = endpoint->X + sina;
|
||||
posy = endpoint->Y - cosa;
|
||||
|
||||
if (!custom->fill)
|
||||
{
|
||||
tmp_points = heap_alloc_zero(custom->pathdata.Count * sizeof(GpPoint));
|
||||
|
|
Loading…
Reference in a new issue