Module: wine Branch: master Commit: ce9de5c4bb1470e0545cbdb2000fff3f9d164687 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ce9de5c4bb1470e0545cbdb200...
Author: Vincent Povirk vincent@codeweavers.com Date: Fri Sep 20 13:12:45 2013 -0500
gdiplus: Skip drawing lines of text with only empty glyphs.
---
dlls/gdiplus/graphics.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index a642bd8..3c4b479 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -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;