Module: wine Branch: master Commit: e029d71c4b7930260924b088340bf370d5988776 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e029d71c4b7930260924b08834...
Author: Vincent Povirk vincent@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**);