Commit 192e1115 authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Don't suggest image size when converting WMF to EMF.

parent a55f2332
...@@ -849,7 +849,6 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromWmf(HMETAFILE hwmf, BOOL delete, ...@@ -849,7 +849,6 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromWmf(HMETAFILE hwmf, BOOL delete,
IStream *stream = NULL; IStream *stream = NULL;
UINT read; UINT read;
BYTE* copy; BYTE* copy;
METAFILEPICT mfp;
HENHMETAFILE hemf; HENHMETAFILE hemf;
GpStatus retval = GenericError; GpStatus retval = GenericError;
...@@ -859,21 +858,13 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromWmf(HMETAFILE hwmf, BOOL delete, ...@@ -859,21 +858,13 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromWmf(HMETAFILE hwmf, BOOL delete,
if(!(calls++)) if(!(calls++))
FIXME("partially implemented\n"); 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); read = GetMetaFileBitsEx(hwmf, 0, NULL);
if(!read) if(!read)
return GenericError; return GenericError;
copy = GdipAlloc(read); copy = GdipAlloc(read);
GetMetaFileBitsEx(hwmf, read, copy); GetMetaFileBitsEx(hwmf, read, copy);
hemf = SetWinMetaFileBits(read, copy, NULL, &mfp); hemf = SetWinMetaFileBits(read, copy, NULL, NULL);
GdipFree(copy); GdipFree(copy);
read = GetEnhMetaFileBits(hemf, 0, NULL); read = GetEnhMetaFileBits(hemf, 0, NULL);
......
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