Vincent Povirk : gdiplus: Use brush_fill_path in GdipFillEllipse.

Alexandre Julliard julliard at winehq.org
Mon Jul 13 07:54:52 CDT 2009


Module: wine
Branch: master
Commit: e306316c7dd390358e93f435b3add19833d2ba04
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e306316c7dd390358e93f435b3add19833d2ba04

Author: Vincent Povirk <madewokherd at gmail.com>
Date:   Sat Jul 11 10:29:44 2009 -0500

gdiplus: Use brush_fill_path in GdipFillEllipse.

---

 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 b59814e..e8777e9 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2512,12 +2512,14 @@ GpStatus WINGDIPAPI GdipFillEllipse(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));
 
     transform_and_round_points(graphics, pti, ptf, 2);
 
+    BeginPath(graphics->hdc);
     Ellipse(graphics->hdc, pti[0].x, pti[0].y, pti[1].x, pti[1].y);
+    EndPath(graphics->hdc);
+
+    brush_fill_path(graphics, brush);
 
     RestoreDC(graphics->hdc, save_state);
 




More information about the wine-cvs mailing list