[1/9] gdiplus: don't suggest image size when converting WMF to EMF
Evan Stade
estade at gmail.com
Wed Aug 1 19:55:33 CDT 2007
Hi,
changelog:
* removed image size "suggestion" (as it is called in the ms docs)
because it is unecessary and can be harmful
dlls/gdiplus/graphics.c | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
--
Evan Stade
-------------- next part --------------
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 GdipCreateMetafileFr
IStream *stream = NULL;
UINT read;
BYTE* copy;
- METAFILEPICT mfp;
HENHMETAFILE hemf;
GpStatus retval = GenericError;
@@ -859,21 +858,13 @@ GpStatus WINGDIPAPI GdipCreateMetafileFr
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);
--
1.4.1
More information about the wine-patches
mailing list