gdiplus: use brush_fill_path in GdipFillPie

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


-- 
Vincent Povirk
-------------- next part --------------
From 624056cfb769bf8cb15d92ab52c74afe839dc6e5 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <madewokherd at gmail.com>
Date: Sat, 11 Jul 2009 10:32:34 -0500
Subject: [PATCH 2/6] gdiplus: use brush_fill_path in GdipFillPie

---
 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 e8777e9..160b7f8 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2586,10 +2586,12 @@ GpStatus WINGDIPAPI GdipFillPie(GpGraphics *graphics, GpBrush *brush, REAL x,
 
     save_state = SaveDC(graphics->hdc);
     EndPath(graphics->hdc);
-    SelectObject(graphics->hdc, brush->gdibrush);
-    SelectObject(graphics->hdc, GetStockObject(NULL_PEN));
 
+    BeginPath(graphics->hdc);
     draw_pie(graphics, x, y, width, height, startAngle, sweepAngle);
+    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