[patch 2/3] gdiplus: GdipStringFormatGetGenericDefault implementation
Nikolay Sivov
bunglehead at gmail.com
Thu Apr 10 17:07:48 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:57:36 -0000
@@ -600,7 +600,7 @@
@ stdcall GdipSetWorldTransform(ptr ptr)
@ stub GdipShearMatrix
@ stdcall GdipStartPathFigure(ptr)
-@ stub GdipStringFormatGetGenericDefault
+@ stdcall GdipStringFormatGetGenericDefault(ptr)
@ stub GdipStringFormatGetGenericTypographic
@ stub GdipTestControl
@ stdcall GdipTransformMatrixPoints(ptr ptr long)
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 22:00:21 -0000
@@ -152,3 +152,22 @@
return Ok;
}
+
+GpStatus WINGDIPAPI GdipStringFormatGetGenericDefault(GpStringFormat
**format)
+{
+ if(!format)
+ return InvalidParameter;
+
+ *format = GdipAlloc(sizeof(GpStringFormat));
+ if(!*format) return OutOfMemory;
+
+ (*format)->attr = 0;
+ (*format)->align = StringAlignmentNear;
+ (*format)->lang = MAKELANGID(LANG_NEUTRAL,SUBLANG_NEUTRAL);
+ (*format)->hkprefix = HotkeyPrefixNone;
+ (*format)->trimming = StringTrimmingCharacter;
+
+ TRACE("%p\n",format);
+
+ 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:55:57 -0000
@@ -316,6 +316,7 @@
GpStatus WINGDIPAPI GdipSetStringFormatHotkeyPrefix(GpStringFormat*,INT);
GpStatus WINGDIPAPI
GdipSetStringFormatLineAlign(GpStringFormat*,StringAlignment);
GpStatus WINGDIPAPI
GdipSetStringFormatTrimming(GpStringFormat*,StringTrimming);
+GpStatus WINGDIPAPI GdipStringFormatGetGenericDefault(GpStringFormat**);
#ifdef __cplusplus
}
More information about the wine-patches
mailing list