Vincent Povirk : gdiplus: Stub GdipGetHemfFromMetafile.
Alexandre Julliard
julliard at winehq.org
Thu Jan 27 12:43:20 CST 2011
Module: wine
Branch: master
Commit: e029d71c4b7930260924b088340bf370d5988776
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e029d71c4b7930260924b088340bf370d5988776
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Wed Jan 26 16:28:03 2011 -0600
gdiplus: Stub GdipGetHemfFromMetafile.
---
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/graphics.c | 12 ++++++++++++
include/gdiplusflat.h | 1 +
3 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 6721c01..80a6aae 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -278,7 +278,7 @@
@ stdcall GdipGetHatchBackgroundColor(ptr ptr)
@ stdcall GdipGetHatchForegroundColor(ptr ptr)
@ stdcall GdipGetHatchStyle(ptr ptr)
-@ stub GdipGetHemfFromMetafile
+@ stdcall GdipGetHemfFromMetafile(ptr ptr)
@ stub GdipGetImageAttributesAdjustedPalette
@ stdcall GdipGetImageBounds(ptr ptr ptr)
@ stdcall GdipGetImageDecoders(long long ptr)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index de1e28f..026b9a2 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -5382,3 +5382,15 @@ cleanup:
GdipDeleteRegion(rgn);
return stat;
}
+
+GpStatus WINGDIPAPI GdipGetHemfFromMetafile(GpMetafile *metafile, HENHMETAFILE *hEmf)
+{
+ FIXME("(%p,%p): stub\n", metafile, hEmf);
+
+ if (!metafile || !hEmf)
+ return InvalidParameter;
+
+ *hEmf = NULL;
+
+ return NotImplemented;
+}
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 7cf2729..b35048f 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -523,6 +523,7 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromWmfFile(GDIPCONST WCHAR*, GDIPCONST Wm
GpMetafile**);
GpStatus WINGDIPAPI GdipCreateMetafileFromFile(GDIPCONST WCHAR*,GpMetafile**);
GpStatus WINGDIPAPI GdipCreateMetafileFromStream(IStream*,GpMetafile**);
+GpStatus WINGDIPAPI GdipGetHemfFromMetafile(GpMetafile*,HENHMETAFILE*);
GpStatus WINGDIPAPI GdipSetMetafileDownLevelRasterizationLimit(GpMetafile*,UINT);
GpStatus WINGDIPAPI GdipRecordMetafile(HDC,EmfType,GDIPCONST GpRectF*,MetafileFrameUnit,GDIPCONST WCHAR*,GpMetafile**);
More information about the wine-cvs
mailing list