[patch 1/3] gdiplus: GdipCloneStringFormat implementation
Nikolay Sivov
bunglehead at gmail.com
Thu Apr 10 17:07:43 CDT 2008
Changelog:
- initial implementation
Index: dlls/gdiplus/gdiplus.spec
===================================================================
RCS file: /home/wine/wine/dlls/gdiplus/gdiplus.spec,v
retrieving revision 1.184
diff -u -r1.184 gdiplus.spec
--- dlls/gdiplus/gdiplus.spec 10 Apr 2008 09:41:08 -0000 1.184
+++ dlls/gdiplus/gdiplus.spec 10 Apr 2008 21:46:25 -0000
@@ -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
Index: dlls/gdiplus/stringformat.c
===================================================================
RCS file: /home/wine/wine/dlls/gdiplus/stringformat.c,v
retrieving revision 1.8
diff -u -r1.8 stringformat.c
--- dlls/gdiplus/stringformat.c 5 Feb 2008 12:37:22 -0000 1.8
+++ dlls/gdiplus/stringformat.c 10 Apr 2008 21:48:44 -0000
@@ -152,3 +152,19 @@
return Ok;
}
+
+GpStatus WINGDIPAPI GdipCloneStringFormat(GDIPCONST GpStringFormat
*format, GpStringFormat **newFormat)
+{
+ if(!format || !newFormat)
+ return InvalidParameter;
+
+ *newFormat = GdipAlloc(sizeof(GpStringFormat));
+ if(!*newFormat) return OutOfMemory;
+
+ memcpy(*newFormat, format, sizeof(GpStringFormat));
+
+ TRACE("%p %p\n",format,newFormat);
+
+ return Ok;
+}
+
Index: include/gdiplusflat.h
===================================================================
RCS file: /home/wine/wine/include/gdiplusflat.h,v
retrieving revision 1.155
diff -u -r1.155 gdiplusflat.h
--- include/gdiplusflat.h 24 Mar 2008 12:57:16 -0000 1.155
+++ include/gdiplusflat.h 10 Apr 2008 21:49:52 -0000
@@ -316,6 +316,7 @@
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-patches
mailing list