gdiplus: use brush_fill_path in GdipFillEllipse
Vincent Povirk
madewokherd+8cd9 at gmail.com
Sat Jul 11 11:02:06 CDT 2009
--
Vincent Povirk
-------------- next part --------------
From 9be238f896762f49275d4fdf3a47c1f07b83ab19 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <madewokherd at gmail.com>
Date: Sat, 11 Jul 2009 10:29:44 -0500
Subject: [PATCH 1/6] 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);
--
1.6.3.3
More information about the wine-patches
mailing list