Vincent Povirk : gdiplus: Use brush_fill_path in GdipFillRectangleI.
Alexandre Julliard
julliard at winehq.org
Mon Jul 13 07:54:58 CDT 2009
Module: wine
Branch: master
Commit: 849af30eb82aa3307d6c78f926ff2dfa5c760e3f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=849af30eb82aa3307d6c78f926ff2dfa5c760e3f
Author: Vincent Povirk <madewokherd at gmail.com>
Date: Sat Jul 11 10:38:47 2009 -0500
gdiplus: Use brush_fill_path in GdipFillRectangleI.
---
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 595fc24..58ca2e6 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -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);
More information about the wine-cvs
mailing list