Vincent Povirk : gdiplus: Skip drawing lines of text with only empty glyphs .
Alexandre Julliard
julliard at winehq.org
Tue Sep 24 03:22:02 CDT 2013
Module: wine
Branch: master
Commit: ce9de5c4bb1470e0545cbdb2000fff3f9d164687
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ce9de5c4bb1470e0545cbdb2000fff3f9d164687
Author: Vincent Povirk <vincent at 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;
More information about the wine-cvs
mailing list