GetWinMetaFileBits
Ulrich Czekalla
ulrich.czekalla at utoronto.ca
Thu Feb 19 08:42:36 CST 2004
ChangeLog:
Ulrich Czekalla <ulrich at codeweavers.com>
Get the rectangle from the dc and uncomment PlayEnhMetaFile
-------------- next part --------------
Index: objects/metafile.c
===================================================================
RCS file: /home/wine/wine/objects/metafile.c,v
retrieving revision 1.62
diff -u -w -r1.62 metafile.c
--- objects/metafile.c 9 Feb 2004 20:47:43 -0000 1.62
+++ objects/metafile.c 19 Feb 2004 14:39:31 -0000
@@ -1404,13 +1404,23 @@
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;
}
More information about the wine-patches
mailing list