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,
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;
}
......
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