Evan Stade : gdiplus: Don't suggest image size when converting WMF to
EMF.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Aug 2 06:23:07 CDT 2007
Module: wine
Branch: master
Commit: 192e1115bd9416944ff5fed8c3962271a795cf22
URL: http://source.winehq.org/git/wine.git/?a=commit;h=192e1115bd9416944ff5fed8c3962271a795cf22
Author: Evan Stade <estade at gmail.com>
Date: Wed Aug 1 17:55:33 2007 -0700
gdiplus: Don't suggest image size when converting WMF to EMF.
---
dlls/gdiplus/graphics.c | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 7ba2d52..2be9fc7 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -849,7 +849,6 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromWmf(HMETAFILE hwmf, BOOL delete,
IStream *stream = NULL;
UINT read;
BYTE* copy;
- METAFILEPICT mfp;
HENHMETAFILE hemf;
GpStatus retval = GenericError;
@@ -859,21 +858,13 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromWmf(HMETAFILE hwmf, BOOL delete,
if(!(calls++))
FIXME("partially implemented\n");
- if(placeable->Inch != INCH_HIMETRIC)
- return NotImplemented;
-
- mfp.mm = MM_HIMETRIC;
- mfp.xExt = placeable->BoundingBox.Right - placeable->BoundingBox.Left;
- mfp.yExt = placeable->BoundingBox.Bottom - placeable->BoundingBox.Top;
- mfp.hMF = NULL;
-
read = GetMetaFileBitsEx(hwmf, 0, NULL);
if(!read)
return GenericError;
copy = GdipAlloc(read);
GetMetaFileBitsEx(hwmf, read, copy);
- hemf = SetWinMetaFileBits(read, copy, NULL, &mfp);
+ hemf = SetWinMetaFileBits(read, copy, NULL, NULL);
GdipFree(copy);
read = GetEnhMetaFileBits(hemf, 0, NULL);
More information about the wine-cvs
mailing list