gdiplus: Skip drawing lines of text with only empty glyphs.

This commit is contained in:
Vincent Povirk 2013-09-20 13:12:45 -05:00 committed by Alexandre Julliard
parent e02de5ff16
commit ce9de5c4bb
1 changed files with 4 additions and 0 deletions

View File

@ -6225,6 +6225,10 @@ static GpStatus SOFTWARE_GdipDrawDriverString(GpGraphics *graphics, GDIPCONST UI
}
}
if (max_glyphsize == 0)
/* Nothing to draw. */
return Ok;
glyph_mask = GdipAlloc(max_glyphsize);
text_mask = GdipAlloc((max_x - min_x) * (max_y - min_y));
text_mask_stride = max_x - min_x;