Vincent Povirk : gdiplus: Use brush_fill_path in GdipFillRectangle.
Alexandre Julliard
julliard at winehq.org
Thu May 7 09:25:37 CDT 2009
Module: wine
Branch: master
Commit: 323e7e68eb0bf48557380152378e7af5ee823e55
URL: http://source.winehq.org/git/wine.git/?a=commit;h=323e7e68eb0bf48557380152378e7af5ee823e55
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Wed May 6 16:34:19 2009 -0500
gdiplus: Use brush_fill_path in GdipFillRectangle.
---
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 68d71c5..07b2114 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2479,12 +2479,14 @@ GpStatus WINGDIPAPI GdipFillRectangle(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