Module: wine Branch: master Commit: bedbd40f5ebb5ad0d648b1bdc4001639025c6ef6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bedbd40f5ebb5ad0d648b1bdc4...
Author: Vincent Povirk madewokherd@gmail.com Date: Sat Jul 11 10:32:34 2009 -0500
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);