[Gdiplus 1/2] DrawString: be more explicit about what we're ignoring.

Adam Petaccia adam at tpetaccia.com
Wed Jul 2 14:01:23 CDT 2008


Also upgrade the TRACE to a FIXME, as it's referring to missing behavior
---
 dlls/gdiplus/graphics.c |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index c274b2e..cd2b8cc 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -1578,7 +1578,22 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
     }
 
     if(format)
-        TRACE("may be ignoring some format flags: attr %x\n", format->attr);
+    {
+        if (format->align)
+            FIXME("Ignoring horizontal alignment: %d\n", format->align);
+        if (format->vertalign)
+            FIXME("Ignoring vertical alignment: %d\n", format->vertalign);
+        /* FIXME: the following StringFormatsFlags are unimplemented:
+         * DirectionRightToLeft, DirectionVertical, NoFitBlackBox,
+         * DisplayFormatControl, NoFontFallback, MeasureTrailingSpaces,
+         * LineLimit, NoClip
+         *
+         * The following are implemented:
+         * NoWrap
+         */
+        if (format->attr & ~StringFormatFlagsNoWrap)
+            FIXME("Ignoring some format flags: attr %x\n", format->attr);
+    }
 
     if(length == -1) length = lstrlenW(string);
 
-- 
1.5.4.3




More information about the wine-patches mailing list