Adam Petaccia : gdiplus: Stub GdipSetStringFormatMeasurableCharacterRanges.

Alexandre Julliard julliard at winehq.org
Thu Jul 10 08:58:44 CDT 2008


Module: wine
Branch: master
Commit: b135d4a7001067caad8e25c383f90639752911d9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b135d4a7001067caad8e25c383f90639752911d9

Author: Adam Petaccia <adam at tpetaccia.com>
Date:   Wed Jul  9 03:33:37 2008 -0400

gdiplus: Stub GdipSetStringFormatMeasurableCharacterRanges.

---

 dlls/gdiplus/gdiplus.spec   |    2 +-
 dlls/gdiplus/stringformat.c |   11 +++++++++++
 include/gdiplusflat.h       |    2 ++
 include/gdiplustypes.h      |    6 ++++++
 4 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 5660ad7..99627e9 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -590,7 +590,7 @@
 @ stdcall GdipSetStringFormatFlags(ptr long)
 @ stdcall GdipSetStringFormatHotkeyPrefix(ptr long)
 @ stdcall GdipSetStringFormatLineAlign(ptr long)
-@ stub GdipSetStringFormatMeasurableCharacterRanges
+@ stdcall GdipSetStringFormatMeasurableCharacterRanges(ptr long ptr)
 @ stub GdipSetStringFormatTabStops
 @ stdcall GdipSetStringFormatTrimming(ptr long)
 @ stub GdipSetTextContrast
diff --git a/dlls/gdiplus/stringformat.c b/dlls/gdiplus/stringformat.c
index 26ce3ed..c9361dc 100644
--- a/dlls/gdiplus/stringformat.c
+++ b/dlls/gdiplus/stringformat.c
@@ -167,6 +167,17 @@ GpStatus WINGDIPAPI GdipSetStringFormatLineAlign(GpStringFormat *format,
     return Ok;
 }
 
+GpStatus WINGDIPAPI GdipSetStringFormatMeasurableCharacterRanges(GpStringFormat*
+        format, INT rangeCount, GDIPCONST CharacterRange* ranges)
+{
+    if (!(format && rangeCount && ranges))
+        return InvalidParameter;
+
+    FIXME("stub: %p, %d, %p\n", format, rangeCount, ranges);
+
+    return NotImplemented;
+}
+
 GpStatus WINGDIPAPI GdipSetStringFormatTrimming(GpStringFormat *format,
     StringTrimming trimming)
 {
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index b36afd4..d10f5ff 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -414,6 +414,8 @@ GpStatus WINGDIPAPI GdipGetStringFormatTrimming(GpStringFormat*,StringTrimming*)
 GpStatus WINGDIPAPI GdipSetStringFormatAlign(GpStringFormat*,StringAlignment);
 GpStatus WINGDIPAPI GdipSetStringFormatHotkeyPrefix(GpStringFormat*,INT);
 GpStatus WINGDIPAPI GdipSetStringFormatLineAlign(GpStringFormat*,StringAlignment);
+GpStatus WINGDIPAPI GdipSetStringFormatMeasurableCharacterRanges(
+        GpStringFormat*, INT, GDIPCONST CharacterRange*);
 GpStatus WINGDIPAPI GdipSetStringFormatTrimming(GpStringFormat*,StringTrimming);
 GpStatus WINGDIPAPI GdipCloneStringFormat(GDIPCONST GpStringFormat*,GpStringFormat**);
 
diff --git a/include/gdiplustypes.h b/include/gdiplustypes.h
index 29616e9..4f97432 100644
--- a/include/gdiplustypes.h
+++ b/include/gdiplustypes.h
@@ -236,6 +236,12 @@ typedef struct Rect
     INT Height;
 } Rect;
 
+typedef struct CharacterRange
+{
+    INT First;
+    INT Length;
+} CharacterRange;
+
 typedef enum Status Status;
 
 #endif /* end of c typedefs */




More information about the wine-cvs mailing list