Evan Stade : gdiplus: Handle StringFormatFlagsNoWrap in
GdipDrawString.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Aug 16 05:38:36 CDT 2007
Module: wine
Branch: master
Commit: 3f32083ed736dd124e9d95d2d53e9d8e074a1a53
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3f32083ed736dd124e9d95d2d53e9d8e074a1a53
Author: Evan Stade <estade at gmail.com>
Date: Wed Aug 15 16:22:00 2007 -0700
gdiplus: Handle StringFormatFlagsNoWrap in GdipDrawString.
---
dlls/gdiplus/graphics.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 19f89a0..81ff9c1 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -1289,13 +1289,14 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
if(!graphics || !string || !font || !brush || !rect)
return InvalidParameter;
- if(format || (brush->bt != BrushTypeSolidColor)){
+ if((brush->bt != BrushTypeSolidColor)){
FIXME("not implemented for given parameters\n");
- if(format)
- TRACE("format attr is %d\n", format->attr);
return NotImplemented;
}
+ if(format)
+ TRACE("may be ignoring some format flags: attr %x\n", format->attr);
+
if(length == -1) length = lstrlenW(string);
stringdup = GdipAlloc(length * sizeof(WCHAR));
@@ -1402,6 +1403,10 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
if(height > roundr(rect->Height * rel_height))
break;
+
+ /* Stop if this was a linewrap (but not if it was a linebreak). */
+ if((lret == fitcpy) && format && (format->attr & StringFormatFlagsNoWrap))
+ break;
}
DeleteObject(rgn);
More information about the wine-cvs
mailing list