gdiplus: use brush_fill_path in GdipFillPolygonI

Vincent Povirk madewokherd+8cd9 at gmail.com
Sat Jul 11 11:03:26 CDT 2009


-- 
Vincent Povirk
-------------- next part --------------
From 7d1d0770c66d66a0c3913c4bbc5707399eb4836a Mon Sep 17 00:00:00 2001
From: Vincent Povirk <madewokherd at gmail.com>
Date: Sat, 11 Jul 2009 10:37:22 -0500
Subject: [PATCH 4/6] gdiplus: use brush_fill_path in GdipFillPolygonI

---
 dlls/gdiplus/graphics.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index e0fbf8a..2912416 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2684,13 +2684,16 @@ GpStatus WINGDIPAPI GdipFillPolygonI(GpGraphics *graphics, GpBrush *brush,
 
     save_state = SaveDC(graphics->hdc);
     EndPath(graphics->hdc);
-    SelectObject(graphics->hdc, brush->gdibrush);
-    SelectObject(graphics->hdc, GetStockObject(NULL_PEN));
     SetPolyFillMode(graphics->hdc, (fillMode == FillModeAlternate ? ALTERNATE
                                                                   : WINDING));
 
     transform_and_round_points(graphics, pti, ptf, count);
+
+    BeginPath(graphics->hdc);
     Polygon(graphics->hdc, pti, count);
+    EndPath(graphics->hdc);
+
+    brush_fill_path(graphics, brush);
 
     RestoreDC(graphics->hdc, save_state);
 
-- 
1.6.3.3


More information about the wine-patches mailing list