Huw Davies : gdi32: Remove obviously incorrect calls to SetMapMode.

Alexandre Julliard julliard at winehq.org
Tue Jun 30 08:33:31 CDT 2009


Module: wine
Branch: master
Commit: db6a9e6f75d03edab6fb5d7860568fddf8f5cf08
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=db6a9e6f75d03edab6fb5d7860568fddf8f5cf08

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Jun 29 16:01:06 2009 +0100

gdi32: Remove obviously incorrect calls to SetMapMode.

---

 dlls/gdi32/metafile.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/dlls/gdi32/metafile.c b/dlls/gdi32/metafile.c
index ed3d16b..53ceceb 100644
--- a/dlls/gdi32/metafile.c
+++ b/dlls/gdi32/metafile.c
@@ -1158,10 +1158,8 @@ UINT WINAPI GetWinMetaFileBits(HENHMETAFILE hemf,
     HMETAFILE hmf;
     UINT ret;
     RECT rc;
-    INT oldMapMode;
 
     GetClipBox(hdcRef, &rc);
-    oldMapMode = SetMapMode(hdcRef, fnMapMode);
 
     TRACE("(%p,%d,%p,%d,%p) rc=%s\n", hemf, cbBuffer, lpbBuffer,
         fnMapMode, hdcRef, wine_dbgstr_rect(&rc));
@@ -1172,8 +1170,6 @@ UINT WINAPI GetWinMetaFileBits(HENHMETAFILE hemf,
     ret = GetMetaFileBitsEx(hmf, cbBuffer, lpbBuffer);
     DeleteMetaFile(hmf);
 
-    SetMapMode(hdcRef, oldMapMode);
-
     return ret;
 }
 




More information about the wine-cvs mailing list