Adam Petaccia : gdiplus: Stub GdipCloneFontFamily.
Alexandre Julliard
julliard at winehq.org
Mon Jul 7 09:19:32 CDT 2008
Module: wine
Branch: master
Commit: cbce6180676c013837d2c16d6f43f5d6c035d52f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cbce6180676c013837d2c16d6f43f5d6c035d52f
Author: Adam Petaccia <adam at tpetaccia.com>
Date: Thu Jul 3 14:26:06 2008 -0400
gdiplus: Stub GdipCloneFontFamily.
---
dlls/gdiplus/font.c | 22 ++++++++++++++++++++++
dlls/gdiplus/gdiplus.spec | 2 +-
include/gdiplusflat.h | 1 +
3 files changed, 24 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c
index 6319252..6ad0502 100644
--- a/dlls/gdiplus/font.c
+++ b/dlls/gdiplus/font.c
@@ -396,6 +396,28 @@ GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR *name,
}
/*******************************************************************************
+ * GdipCloneFontFamily [GDIPLUS.@]
+ *
+ * Creates a deep copy of a Font Family object
+ *
+ * PARAMS
+ * FontFamily [I] Font to clone
+ * clonedFontFamily [O] The resulting cloned font
+ *
+ * RETURNS
+ * SUCCESS: Ok
+ */
+GpStatus WINGDIPAPI GdipCloneFontFamily(GpFontFamily* FontFamily, GpFontFamily** clonedFontFamily)
+{
+ if (!(FontFamily && clonedFontFamily)) return InvalidParameter;
+
+ FIXME("stub: %p (%s), %p\n", FontFamily,
+ debugstr_w(FontFamily->FamilyName), clonedFontFamily);
+
+ return NotImplemented;
+}
+
+/*******************************************************************************
* GdipGetFamilyName [GDIPLUS.@]
*
* Returns the family name into name
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 35657aa..741c569 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -51,7 +51,7 @@
@ stdcall GdipCloneBrush(ptr ptr)
@ stdcall GdipCloneCustomLineCap(ptr ptr)
@ stdcall GdipCloneFont(ptr ptr)
-@ stub GdipCloneFontFamily
+@ stdcall GdipCloneFontFamily(ptr ptr)
@ stdcall GdipCloneImage(ptr ptr)
@ stdcall GdipCloneImageAttributes(ptr ptr)
@ stdcall GdipCloneMatrix(ptr ptr)
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 0859ad7..5532966 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -375,6 +375,7 @@ GpStatus WINGDIPAPI GdipGetFontSize(GpFont*, REAL*);
GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR*,
GpFontCollection*, GpFontFamily**);
+GpStatus WINGDIPAPI GdipCloneFontFamily(GpFontFamily*, GpFontFamily**);
GpStatus WINGDIPAPI GdipDeleteFontFamily(GpFontFamily*);
GpStatus WINGDIPAPI GdipGetFamilyName(GDIPCONST GpFontFamily*, WCHAR*, LANGID);
More information about the wine-cvs
mailing list