gdiplus: Skip drawing lines of text with only empty glyphs.
This commit is contained in:
parent
e02de5ff16
commit
ce9de5c4bb
|
@ -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);
|
glyph_mask = GdipAlloc(max_glyphsize);
|
||||||
text_mask = GdipAlloc((max_x - min_x) * (max_y - min_y));
|
text_mask = GdipAlloc((max_x - min_x) * (max_y - min_y));
|
||||||
text_mask_stride = max_x - min_x;
|
text_mask_stride = max_x - min_x;
|
||||||
|
|
Loading…
Reference in New Issue