Module: wine Branch: master Commit: 38fc894c966442cc952bcdcdedc97fa0fc44f84c URL: http://source.winehq.org/git/wine.git/?a=commit;h=38fc894c966442cc952bcdcded...
Author: Vincent Povirk madewokherd@gmail.com Date: Sat Jul 11 10:37:22 2009 -0500
gdiplus: Use brush_fill_path in GdipFillPolygonI.
---
dlls/gdiplus/graphics.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index e0fbf8a..2912416 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -2684,13 +2684,16 @@ GpStatus WINGDIPAPI GdipFillPolygonI(GpGraphics *graphics, GpBrush *brush,
save_state = SaveDC(graphics->hdc); EndPath(graphics->hdc); - SelectObject(graphics->hdc, brush->gdibrush); - SelectObject(graphics->hdc, GetStockObject(NULL_PEN)); SetPolyFillMode(graphics->hdc, (fillMode == FillModeAlternate ? ALTERNATE : WINDING));
transform_and_round_points(graphics, pti, ptf, count); + + BeginPath(graphics->hdc); Polygon(graphics->hdc, pti, count); + EndPath(graphics->hdc); + + brush_fill_path(graphics, brush);
RestoreDC(graphics->hdc, save_state);