Commit db6a9e6f authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdi32: Remove obviously incorrect calls to SetMapMode.

parent d7af14f1
...@@ -1158,10 +1158,8 @@ UINT WINAPI GetWinMetaFileBits(HENHMETAFILE hemf, ...@@ -1158,10 +1158,8 @@ UINT WINAPI GetWinMetaFileBits(HENHMETAFILE hemf,
HMETAFILE hmf; HMETAFILE hmf;
UINT ret; UINT ret;
RECT rc; RECT rc;
INT oldMapMode;
GetClipBox(hdcRef, &rc); GetClipBox(hdcRef, &rc);
oldMapMode = SetMapMode(hdcRef, fnMapMode);
TRACE("(%p,%d,%p,%d,%p) rc=%s\n", hemf, cbBuffer, lpbBuffer, TRACE("(%p,%d,%p,%d,%p) rc=%s\n", hemf, cbBuffer, lpbBuffer,
fnMapMode, hdcRef, wine_dbgstr_rect(&rc)); fnMapMode, hdcRef, wine_dbgstr_rect(&rc));
...@@ -1172,8 +1170,6 @@ UINT WINAPI GetWinMetaFileBits(HENHMETAFILE hemf, ...@@ -1172,8 +1170,6 @@ UINT WINAPI GetWinMetaFileBits(HENHMETAFILE hemf,
ret = GetMetaFileBitsEx(hmf, cbBuffer, lpbBuffer); ret = GetMetaFileBitsEx(hmf, cbBuffer, lpbBuffer);
DeleteMetaFile(hmf); DeleteMetaFile(hmf);
SetMapMode(hdcRef, oldMapMode);
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment