[Gdiplus 02/15] Implement GdipGetStringFormatFlags

Adam Petaccia adam at tpetaccia.com
Wed Jul 9 02:33:30 CDT 2008


---
 dlls/gdiplus/gdiplus.spec   |    2 +-
 dlls/gdiplus/stringformat.c |   11 +++++++++++
 include/gdiplusflat.h       |    1 +
 3 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 8d13e9e..e70b083 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -388,7 +388,7 @@
 @ stdcall GdipGetSolidFillColor(ptr ptr)
 @ stdcall GdipGetStringFormatAlign(ptr ptr)
 @ stub GdipGetStringFormatDigitSubstitution
-@ stub GdipGetStringFormatFlags
+@ stdcall GdipGetStringFormatFlags(ptr ptr)
 @ stdcall GdipGetStringFormatHotkeyPrefix(ptr ptr)
 @ stdcall GdipGetStringFormatLineAlign(ptr ptr)
 @ stub GdipGetStringFormatMeasurableCharacterRangeCount
diff --git a/dlls/gdiplus/stringformat.c b/dlls/gdiplus/stringformat.c
index 87aa113..d832ce8 100644
--- a/dlls/gdiplus/stringformat.c
+++ b/dlls/gdiplus/stringformat.c
@@ -79,6 +79,17 @@ GpStatus WINGDIPAPI GdipGetStringFormatAlign(GpStringFormat *format,
     return Ok;
 }
 
+GpStatus WINGDIPAPI GdipGetStringFormatFlags(GDIPCONST GpStringFormat* format,
+        INT* flags)
+{
+    if (!(format && flags))
+        return InvalidParameter;
+
+    *flags = format->attr;
+
+    return Ok;
+}
+
 GpStatus WINGDIPAPI GdipGetStringFormatHotkeyPrefix(GDIPCONST GpStringFormat
     *format, INT *hkpx)
 {
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 3d3d9ee..06b2794 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -396,6 +396,7 @@ GpStatus WINGDIPAPI GdipCreateStringFormat(INT,LANGID,GpStringFormat**);
 GpStatus WINGDIPAPI GdipDeleteStringFormat(GpStringFormat*);
 GpStatus WINGDIPAPI GdipStringFormatGetGenericDefault(GpStringFormat **);
 GpStatus WINGDIPAPI GdipGetStringFormatAlign(GpStringFormat*,StringAlignment*);
+GpStatus WINGDIPAPI GdipGetStringFormatFlags(GDIPCONST GpStringFormat*, INT*);
 GpStatus WINGDIPAPI GdipGetStringFormatHotkeyPrefix(GDIPCONST GpStringFormat*,INT*);
 GpStatus WINGDIPAPI GdipGetStringFormatLineAlign(GpStringFormat*,StringAlignment*);
 GpStatus WINGDIPAPI GdipGetStringFormatTrimming(GpStringFormat*,StringTrimming*);
-- 
1.5.4.3




More information about the wine-patches mailing list