Commit 6cc56740 authored by Ulrich Czekalla's avatar Ulrich Czekalla Committed by Alexandre Julliard

Get the rectangle from the dc and uncomment PlayEnhMetaFile in

GetWinMetaFileBits.
parent 8677fbf3
......@@ -1404,13 +1404,23 @@ UINT WINAPI GetWinMetaFileBits(HENHMETAFILE hemf,
HDC hdcmf;
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));
FIXME("(%p,%d,%p,%d,%p): stub\n", hemf, cbBuffer, lpbBuffer, fnMapMode, hdcRef);
hdcmf = CreateMetaFileA(NULL);
/* PlayEnhMetaFile(hdcmf, hemf, lpRect); where does the bounding rect come from? */
PlayEnhMetaFile(hdcmf, hemf, &rc);
hmf = CloseMetaFile(hdcmf);
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