Adam Petaccia : gdiplus: Implement GdipGetStringFormatFlags.
Alexandre Julliard
julliard at winehq.org
Thu Jul 10 08:58:39 CDT 2008
Module: wine
Branch: master
Commit: 2a1d41bf62638ab9a001302e5a0fac4d66fb09cf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2a1d41bf62638ab9a001302e5a0fac4d66fb09cf
Author: Adam Petaccia <adam at tpetaccia.com>
Date: Wed Jul 9 03:33:30 2008 -0400
gdiplus: Implement GdipGetStringFormatFlags.
---
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 1e19e38..185354d 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 f782ece..0e6518e 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -405,6 +405,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*);
More information about the wine-cvs
mailing list