summaryrefslogtreecommitdiff
authorMichel Dänzer <michel@tungstengraphics.com>2007-10-18 15:44:48 (GMT)
committer Michel Dänzer <michel@tungstengraphics.com>2007-10-18 15:44:48 (GMT)
commitce50bfd3369686cfecee5a138bd84ef1107a249d (patch) (side-by-side diff)
tree5108330dd6b756880bca5f72cab0db43fce53154
parent5d74416740de883b7ef0994afea4bbd4d3901be0 (diff)
downloadxserver-ce50bfd3369686cfecee5a138bd84ef1107a249d.zip
xserver-ce50bfd3369686cfecee5a138bd84ef1107a249d.tar.gz
EXA: Skip empty glyphs.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--exa/exa_render.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/exa/exa_render.c b/exa/exa_render.c
index 65e67d8..cc2f59d 100644
--- a/exa/exa_render.c
+++ b/exa/exa_render.c
@@ -1246,6 +1246,7 @@ exaGlyphs (CARD8 op,
y1 = y - glyph->info.y;
if (x1 >= pCmpDrw->width || y1 >= pCmpDrw->height ||
+ glyph->info.width == 0 || glyph->info.height == 0 ||
(x1 + glyph->info.width) <= 0 || (y1 + glyph->info.height) <= 0)
goto nextglyph;