forked from Mirrors/wine-wine
gdiplus: Account for gdi32 transform in SOFTWARE_GdipDrawPath.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>oldstable
parent
e3395d50a7
commit
ac51280b1f
|
@ -3799,7 +3799,7 @@ static GpStatus SOFTWARE_GdipDrawPath(GpGraphics *graphics, GpPen *pen, GpPath *
|
||||||
points[1].X = pen->width;
|
points[1].X = pen->width;
|
||||||
points[2].Y = pen->width;
|
points[2].Y = pen->width;
|
||||||
|
|
||||||
stat = GdipTransformPoints(graphics, CoordinateSpaceDevice,
|
stat = gdip_transform_points(graphics, WineCoordinateSpaceGdiDevice,
|
||||||
CoordinateSpaceWorld, points, 3);
|
CoordinateSpaceWorld, points, 3);
|
||||||
|
|
||||||
if (stat != Ok)
|
if (stat != Ok)
|
||||||
|
@ -3823,7 +3823,7 @@ static GpStatus SOFTWARE_GdipDrawPath(GpGraphics *graphics, GpPen *pen, GpPath *
|
||||||
stat = GdipCreateMatrix(&transform);
|
stat = GdipCreateMatrix(&transform);
|
||||||
|
|
||||||
if (stat == Ok)
|
if (stat == Ok)
|
||||||
stat = get_graphics_transform(graphics, CoordinateSpaceDevice,
|
stat = get_graphics_transform(graphics, WineCoordinateSpaceGdiDevice,
|
||||||
CoordinateSpaceWorld, transform);
|
CoordinateSpaceWorld, transform);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -3831,7 +3831,7 @@ static GpStatus SOFTWARE_GdipDrawPath(GpGraphics *graphics, GpPen *pen, GpPath *
|
||||||
/* Set flatness based on the final coordinate space */
|
/* Set flatness based on the final coordinate space */
|
||||||
GpMatrix t;
|
GpMatrix t;
|
||||||
|
|
||||||
stat = get_graphics_transform(graphics, CoordinateSpaceDevice,
|
stat = get_graphics_transform(graphics, WineCoordinateSpaceGdiDevice,
|
||||||
CoordinateSpaceWorld, &t);
|
CoordinateSpaceWorld, &t);
|
||||||
|
|
||||||
if (stat != Ok)
|
if (stat != Ok)
|
||||||
|
|
Loading…
Reference in New Issue