[Gdiplus 04/16] Stub GdipCloneFontFamily
Adam Petaccia
adam at tpetaccia.com
Wed Jul 2 12:24:50 CDT 2008
---
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 4196a55..c3d24d3 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 4067873..09bd28e 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 4a5146c..a90a496 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -369,6 +369,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);
--
1.5.4.3
More information about the wine-patches
mailing list