gdiplus: Use brush_fill_path in GdipFillRectangleI.

This commit is contained in:
Vincent Povirk 2009-07-11 10:38:47 -05:00 committed by Alexandre Julliard
parent 6a8a770c76
commit 849af30eb8
1 changed files with 4 additions and 2 deletions

View File

@ -2786,12 +2786,14 @@ GpStatus WINGDIPAPI GdipFillRectangleI(GpGraphics *graphics, GpBrush *brush,
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, 4);
BeginPath(graphics->hdc);
Polygon(graphics->hdc, pti, 4);
EndPath(graphics->hdc);
brush_fill_path(graphics, brush);
RestoreDC(graphics->hdc, save_state);