gdiplus: Use brush_fill_path in GdipFillPolygonI.

This commit is contained in:
Vincent Povirk 2009-07-11 10:37:22 -05:00 committed by Alexandre Julliard
parent 15fef07887
commit 38fc894c96
1 changed files with 5 additions and 2 deletions

View File

@ -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);