[2/2] gdiplus: save GDI path in GdipDrawLineI

Evan Stade estade at gmail.com
Tue Jul 3 13:39:22 CDT 2007


On 7/2/07, Evan Stade <estade at gmail.com> wrote:
> Hi,
>
> GDI+ must save/restore the GDI path  before and after drawing on a DC.
>
> Changelog:
> *add functions to save and restore any open GDI path
> *used them in GdipDrawLineI
>
>  dlls/gdiplus/graphics.c |   76 +++++++++++++++++++++++++++++++++++++++++++++++
>  1 files changed, 76 insertions(+), 0 deletions(-)
>
> --
> Evan Stade
>
>

Hi,

Please use this patch instead.

Changelog:
* EndPath() in GdipDrawLineI in case there is an open path

 dlls/gdiplus/graphics.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

-- 
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 453cbe5..4765e33 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -253,6 +253,7 @@ GpStatus WINGDIPAPI GdipDrawLineI(GpGrap
         return InvalidParameter;
 
     save_state = SaveDC(graphics->hdc);
+    EndPath(graphics->hdc);
     SelectObject(graphics->hdc, pen->gdipen);
 
     MoveToEx(graphics->hdc, x1, y1, NULL);
-- 
1.4.1


More information about the wine-patches mailing list