[Gdiplus 2/4] Stub GdipCloneImage
Adam Petaccia
adam at tpetaccia.com
Tue Jul 1 20:03:34 CDT 2008
Needed for 11033, 9366, 10982, 14014 and others.
---
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/image.c | 9 +++++++++
include/gdiplusflat.h | 1 +
3 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 587f2ab..4067873 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -52,7 +52,7 @@
@ stdcall GdipCloneCustomLineCap(ptr ptr)
@ stdcall GdipCloneFont(ptr ptr)
@ stub GdipCloneFontFamily
-@ stub GdipCloneImage
+@ stdcall GdipCloneImage(ptr ptr)
@ stdcall GdipCloneImageAttributes(ptr ptr)
@ stdcall GdipCloneMatrix(ptr ptr)
@ stdcall GdipClonePath(ptr ptr)
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index 330e54b..bf2ac35 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -240,6 +240,15 @@ GpStatus WINGDIPAPI GdipBitmapUnlockBits(GpBitmap* bitmap,
return Ok;
}
+GpStatus WINGDIPAPI GdipCloneImage(GpImage *image, GpImage **cloneImage)
+{
+ if (!(image && cloneImage)) return InvalidParameter;
+
+ FIXME("stub: %p, %p", image, cloneImage);
+
+ return NotImplemented;
+}
+
GpStatus WINGDIPAPI GdipCreateBitmapFromFile(GDIPCONST WCHAR* filename,
GpBitmap **bitmap)
{
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 5caeb72..71f0744 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -342,6 +342,7 @@ GpStatus WINGDIPAPI GdipRemovePropertyItem(GpImage*,PROPID);
GpStatus WINGDIPAPI GdipSaveImageToFile(GpImage*,GDIPCONST WCHAR*,GDIPCONST CLSID*,GDIPCONST EncoderParameters*);
GpStatus WINGDIPAPI GdipSaveImageToStream(GpImage*,IStream*,
GDIPCONST CLSID*,GDIPCONST EncoderParameters*);
+GpStatus WINGDIPAPI GdipCloneImage(GpImage*, GpImage**);
GpStatus WINGDIPAPI GdipSetImagePalette(GpImage*,GDIPCONST ColorPalette*);
GpStatus WINGDIPAPI GdipCloneImageAttributes(GDIPCONST GpImageAttributes*,GpImageAttributes**);
--
1.5.4.3
More information about the wine-patches
mailing list