diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-10-21 10:51:08 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-10-21 10:51:08 +0200 |
commit | ded124f1cc463bac9e076146a4ffb77b8a370e0c (patch) | |
tree | c1b35fe12bd14ed507294b185587b428a92bcbef /render/rendertext.c | |
parent | 730cf84f6323b977bf7bcde1557d1803a16ad855 (diff) | |
download | mupdf-ded124f1cc463bac9e076146a4ffb77b8a370e0c.tar.xz |
rewrote resource dict handling
Diffstat (limited to 'render/rendertext.c')
-rw-r--r-- | render/rendertext.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/render/rendertext.c b/render/rendertext.c index cc181657..81afeafa 100644 --- a/render/rendertext.c +++ b/render/rendertext.c @@ -33,13 +33,13 @@ static void blitcolorglyph(fz_pixmap *out, fz_glyph *gl, int xo, int yo, fz_rend { for (sx = 0; sx < gl->w; sx++) { - dx = xo + sx + gl->lsb - out->x; dy = yo - sy + gl->top - out->y; + if (dy < 0) continue; + if (dy >= out->h) break; + dx = xo + sx + gl->lsb - out->x; if (dx < 0) continue; - if (dy < 0) continue; - if (dx >= out->w) continue; - if (dy >= out->h) continue; + if (dx >= out->w) break; sa = gl->bitmap[sx + sy * gl->w]; ssa = 255 - sa; |