Vincent Povirk : gdiplus: Account for gdi transform in brush_fill_pixels.
Alexandre Julliard
julliard at winehq.org
Fri Sep 1 12:23:21 CDT 2017
Module: wine
Branch: master
Commit: 0914f626af73b6fb10826178d6736a873113fc84
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0914f626af73b6fb10826178d6736a873113fc84
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Thu Aug 31 14:14:04 2017 -0500
gdiplus: Account for gdi transform in brush_fill_pixels.
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/gdiplus/graphics.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 7aa1dac..e19fefc 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -1169,8 +1169,8 @@ static GpStatus brush_fill_pixels(GpGraphics *graphics, GpBrush *brush,
/* Transform the points to a co-ordinate space where X is the point's
* position in the gradient, 0.0 being the start point and 1.0 the
* end point. */
- stat = GdipTransformPoints(graphics, CoordinateSpaceWorld,
- CoordinateSpaceDevice, draw_points, 3);
+ stat = gdip_transform_points(graphics, CoordinateSpaceWorld,
+ WineCoordinateSpaceGdiDevice, draw_points, 3);
if (stat == Ok)
{
@@ -1230,8 +1230,8 @@ static GpStatus brush_fill_pixels(GpGraphics *graphics, GpBrush *brush,
draw_points[2].Y = fill_area->Y+1;
/* Transform the points to the co-ordinate space of the bitmap. */
- stat = GdipTransformPoints(graphics, CoordinateSpaceWorld,
- CoordinateSpaceDevice, draw_points, 3);
+ stat = gdip_transform_points(graphics, CoordinateSpaceWorld,
+ WineCoordinateSpaceGdiDevice, draw_points, 3);
if (stat == Ok)
{
@@ -1361,7 +1361,7 @@ static GpStatus brush_fill_pixels(GpGraphics *graphics, GpBrush *brush,
if (stat != Ok)
return stat;
- stat = get_graphics_transform(graphics, CoordinateSpaceDevice,
+ stat = get_graphics_transform(graphics, WineCoordinateSpaceGdiDevice,
CoordinateSpaceWorld, &world_to_device);
if (stat == Ok)
{
More information about the wine-cvs
mailing list