gdiplus: Use brush_fill_path in GdipFillPolygon.
This commit is contained in:
parent
bedbd40f5e
commit
15fef07887
|
@ -2634,13 +2634,16 @@ GpStatus WINGDIPAPI GdipFillPolygon(GpGraphics *graphics, GpBrush *brush,
|
||||||
|
|
||||||
save_state = SaveDC(graphics->hdc);
|
save_state = SaveDC(graphics->hdc);
|
||||||
EndPath(graphics->hdc);
|
EndPath(graphics->hdc);
|
||||||
SelectObject(graphics->hdc, brush->gdibrush);
|
|
||||||
SelectObject(graphics->hdc, GetStockObject(NULL_PEN));
|
|
||||||
SetPolyFillMode(graphics->hdc, (fillMode == FillModeAlternate ? ALTERNATE
|
SetPolyFillMode(graphics->hdc, (fillMode == FillModeAlternate ? ALTERNATE
|
||||||
: WINDING));
|
: WINDING));
|
||||||
|
|
||||||
transform_and_round_points(graphics, pti, ptf, count);
|
transform_and_round_points(graphics, pti, ptf, count);
|
||||||
|
|
||||||
|
BeginPath(graphics->hdc);
|
||||||
Polygon(graphics->hdc, pti, count);
|
Polygon(graphics->hdc, pti, count);
|
||||||
|
EndPath(graphics->hdc);
|
||||||
|
|
||||||
|
brush_fill_path(graphics, brush);
|
||||||
|
|
||||||
RestoreDC(graphics->hdc, save_state);
|
RestoreDC(graphics->hdc, save_state);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue