Commit c509060f authored by Ziqing Hui's avatar Ziqing Hui Committed by Alexandre Julliard

gdiplus: Support StringFormatNoWrap for GdipMeasureString.

parent 3f228497
......@@ -5270,7 +5270,7 @@ GpStatus gdip_format_string(HDC hdc,
if(*(stringdup + sum + fit) == ' ')
while(*(stringdup + sum + fit) == ' ')
fit++;
else
else if (!(format->attr & StringFormatFlagsNoWrap))
while(*(stringdup + sum + fit - 1) != ' '){
fit--;
......
......@@ -4900,10 +4900,8 @@ todo_wine
rect.Height = 32000.0;
status = GdipMeasureString(graphics, string2, -1, font, &rect, format_no_wrap, &bounds, &glyphs, &lines);
expect(Ok, status);
todo_wine {
expectf_(width_M_M, bounds.Width, 0.1);
expect(3, glyphs);
}
expect(1, lines);
status = GdipDeleteFont(font);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment