Nikolay Sivov : gdiplus: Implement GdipCloneStringFormat.
Alexandre Julliard
julliard at winehq.org
Thu Apr 17 07:38:45 CDT 2008
Module: wine
Branch: master
Commit: 6ba525d8c41978e1761fc66bacc02517a930d2e5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6ba525d8c41978e1761fc66bacc02517a930d2e5
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Wed Apr 16 21:47:12 2008 +0400
gdiplus: Implement GdipCloneStringFormat.
---
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/stringformat.c | 15 +++++++++++++++
include/gdiplusflat.h | 1 +
3 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 337ffb2..5c5e0a8 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -58,7 +58,7 @@
@ stdcall GdipClonePath(ptr ptr)
@ stdcall GdipClonePen(ptr ptr)
@ stub GdipCloneRegion
-@ stub GdipCloneStringFormat
+@ stdcall GdipCloneStringFormat(ptr ptr)
@ stdcall GdipClosePathFigure(ptr)
@ stdcall GdipClosePathFigures(ptr)
@ stub GdipCombineRegionPath
diff --git a/dlls/gdiplus/stringformat.c b/dlls/gdiplus/stringformat.c
index 7de1c2c..bd5d6ad 100644
--- a/dlls/gdiplus/stringformat.c
+++ b/dlls/gdiplus/stringformat.c
@@ -152,3 +152,18 @@ GpStatus WINGDIPAPI GdipSetStringFormatFlags(GDIPCONST GpStringFormat *format, I
return Ok;
}
+
+GpStatus WINGDIPAPI GdipCloneStringFormat(GDIPCONST GpStringFormat *format, GpStringFormat **newFormat)
+{
+ if(!format || !newFormat)
+ return InvalidParameter;
+
+ *newFormat = GdipAlloc(sizeof(GpStringFormat));
+ if(!*newFormat) return OutOfMemory;
+
+ **newFormat = *format;
+
+ TRACE("%p %p\n",format,newFormat);
+
+ return Ok;
+}
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index e92c646..f615e5b 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -316,6 +316,7 @@ GpStatus WINGDIPAPI GdipSetStringFormatAlign(GpStringFormat*,StringAlignment);
GpStatus WINGDIPAPI GdipSetStringFormatHotkeyPrefix(GpStringFormat*,INT);
GpStatus WINGDIPAPI GdipSetStringFormatLineAlign(GpStringFormat*,StringAlignment);
GpStatus WINGDIPAPI GdipSetStringFormatTrimming(GpStringFormat*,StringTrimming);
+GpStatus WINGDIPAPI GdipCloneStringFormat(GDIPCONST GpStringFormat*,GpStringFormat**);
#ifdef __cplusplus
}
More information about the wine-cvs
mailing list