From e55252bd3b3ee8ad07aeda558dd469e98fedd620 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 23 May 2008 20:46:36 -0400 Subject: [PATCH] [cairo-xlib] Shift range of allowed glyph positions From -1024..15359, to -4096..122887. This still does not fix the large-font test as that uses a 10000 font. Working on a proper fix for glyph dropping now. --- src/cairo-xlib-surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c index f742a7c95..6bc8dd12d 100644 --- a/src/cairo-xlib-surface.c +++ b/src/cairo-xlib-surface.c @@ -3337,10 +3337,10 @@ _cairo_xlib_surface_emit_glyphs (cairo_xlib_surface_t *dst, * negative value of -8192 on the other hand, is absolutely useless. * Note that we do want to allow some negative positions. The glyph * may start off the screen but part of it make it to the screen. - * Anyway, we will allow positions in the range -1024..15359. That + * Anyway, we will allow positions in the range -4096..122887. That * will buy us a few more years before this stops working. */ - if (((this_x+1024)|(this_y+1024))&~0x3fffu) { + if (((this_x+4096)|(this_y+4096))&~0x3fffu) { glyphs[i].index = GLYPH_INDEX_SKIP; continue; }