[patch 3/3] gdiplus: GdipStringFormatGetGenericTypographic implementation
Nikolay Sivov
bunglehead at gmail.com
Thu Apr 10 17:07:54 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 22:05:02 -0000
@@ -601,7 +601,7 @@
@ stub GdipShearMatrix
@ stdcall GdipStartPathFigure(ptr)
@ stub GdipStringFormatGetGenericDefault
-@ stub GdipStringFormatGetGenericTypographic
+@ stdcall GdipStringFormatGetGenericTypographic(ptr)
@ stub GdipTestControl
@ stdcall GdipTransformMatrixPoints(ptr ptr long)
@ stub GdipTransformMatrixPointsI
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:03:54 -0000
@@ -152,3 +152,22 @@
return Ok;
}
+
+GpStatus WINGDIPAPI
GdipStringFormatGetGenericTypographic(GpStringFormat **format)
+{
+ if(!format)
+ return InvalidParameter;
+
+ *format = GdipAlloc(sizeof(GpStringFormat));
+ if(!*format) return OutOfMemory;
+
+ (*format)->attr = StringFormatFlagsLineLimit |
StringFormatFlagsNoClip | StringFormatFlagsNoFitBlackBox;
+ (*format)->align = StringAlignmentNear;
+ (*format)->lang = MAKELANGID(LANG_NEUTRAL,SUBLANG_NEUTRAL);
+ (*format)->hkprefix = HotkeyPrefixNone;
+ (*format)->trimming = StringTrimmingNone;
+
+ 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 22:02:56 -0000
@@ -316,6 +316,7 @@
GpStatus WINGDIPAPI GdipSetStringFormatHotkeyPrefix(GpStringFormat*,INT);
GpStatus WINGDIPAPI
GdipSetStringFormatLineAlign(GpStringFormat*,StringAlignment);
GpStatus WINGDIPAPI
GdipSetStringFormatTrimming(GpStringFormat*,StringTrimming);
+GpStatus WINGDIPAPI
GdipStringFormatGetGenericTypographic(GpStringFormat**);
#ifdef __cplusplus
}
More information about the wine-patches
mailing list