From 6ed591d0ce60e7e942b1678df087ff195ac032a9 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Wed, 25 May 2005 08:25:59 +0000 Subject: Fix a bug preventing the display of characters above 127 in openGL. --- generic/Image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'generic') diff --git a/generic/Image.c b/generic/Image.c index d6636e9..723adcb 100644 --- a/generic/Image.c +++ b/generic/Image.c @@ -1650,7 +1650,7 @@ ZnGetFontIndex(ZnTexFontInfo tfi, if (!tgvi) { return -1; } - min = 127; + min = 127 - 32; max = txf->num_glyphs; while (min < max) { mid = (min + max) >> 1; @@ -1665,7 +1665,7 @@ ZnGetFontIndex(ZnTexFontInfo tfi, min = mid + 1; } } - /*fprintf(stderr, "Tried to access unavailable texture font character %d (Unicode)\n", c);*/ + //fprintf(stderr, "Tried to access unavailable texture font character %d (Unicode)\n", c); return -1; } -- cgit v1.1