gdiplus: use brush_fill_path in GdipFillRectangleI

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


-- 
Vincent Povirk
-------------- next part --------------
From 8d45bd5ec4b970035391502c6c01e8da5c8c7011 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <madewokherd at gmail.com>
Date: Sat, 11 Jul 2009 10:38:47 -0500
Subject: [PATCH 5/6] gdiplus: use brush_fill_path in GdipFillRectangleI

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

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 2912416..12a92c9 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2786,12 +2786,14 @@ GpStatus WINGDIPAPI GdipFillRectangleI(GpGraphics *graphics, GpBrush *brush,
 
     save_state = SaveDC(graphics->hdc);
     EndPath(graphics->hdc);
-    SelectObject(graphics->hdc, brush->gdibrush);
-    SelectObject(graphics->hdc, GetStockObject(NULL_PEN));
 
     transform_and_round_points(graphics, pti, ptf, 4);
 
+    BeginPath(graphics->hdc);
     Polygon(graphics->hdc, pti, 4);
+    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