Fix Bug#: 4300: viewportExt changed after call to StrokePath

Tobias Loew tobi at die-loews.de
Sat Jan 28 05:21:21 CST 2006


Changelog:
    dlls/gdi/path.c

    Tobias Loew <tobi at die-loews.de>
    Fix Bug#: 4300: viewportExt changed after call to StrokePath
    call SetWindowExtEx before SetViewportExtEx

Tobias Loew


Index: dlls/gdi/path.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/path.c,v
retrieving revision 1.11
diff -u -p -r1.11 path.c
--- dlls/gdi/path.c	7 Nov 2005 16:40:20 -0000	1.11
+++ dlls/gdi/path.c	28 Jan 2006 10:25:46 -0000
@@ -1780,10 +1780,10 @@ static BOOL PATH_StrokePath(DC *dc, GdiP
 
     /* Restore the old mapping mode */
     SetMapMode(dc->hSelf, mapMode);
-    SetViewportExtEx(dc->hSelf, szViewportExt.cx, szViewportExt.cy, NULL);
-    SetViewportOrgEx(dc->hSelf, ptViewportOrg.x, ptViewportOrg.y, NULL);
     SetWindowExtEx(dc->hSelf, szWindowExt.cx, szWindowExt.cy, NULL);
     SetWindowOrgEx(dc->hSelf, ptWindowOrg.x, ptWindowOrg.y, NULL);
+    SetViewportExtEx(dc->hSelf, szViewportExt.cx, szViewportExt.cy, NULL);
+    SetViewportOrgEx(dc->hSelf, ptViewportOrg.x, ptViewportOrg.y, NULL);
 
     /* Go to GM_ADVANCED temporarily to restore the world transform */
     graphicsMode=GetGraphicsMode(dc->hSelf);




More information about the wine-patches mailing list