Get the rectangle from the dc and uncomment PlayEnhMetaFile in

GetWinMetaFileBits.
This commit is contained in:
Ulrich Czekalla 2004-02-20 01:08:57 +00:00 committed by Alexandre Julliard
parent 8677fbf362
commit 6cc56740f5
1 changed files with 12 additions and 2 deletions

View File

@ -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;
}