From 16d1bc98646ef5ac05806f7190b3424b70804c32 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 20 Jan 2010 09:39:52 +0000 Subject: [PATCH] fix the bug I just fixed another time :P slight speedup, no other change from this git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9841 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_draw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gl_draw.c b/gl_draw.c index 2f058761..b7f66acc 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -1241,7 +1241,6 @@ float DrawQ_TextWidth_UntilWidth_TrackColors_Scale(const char *text, size_t *max } x += width_of[ch] * dw; } else { - //if (!map || map == ft2_oldstyle_map || map->start < ch || map->start + FONT_CHARS_PER_MAP >= ch) if (!map || map == ft2_oldstyle_map || ch < map->start || ch >= map->start + FONT_CHARS_PER_MAP) { map = FontMap_FindForChar(fontmap, ch); @@ -1513,7 +1512,7 @@ float DrawQ_String_Scale(float startx, float starty, const char *text, size_t ma } x += width_of[ch] * dw; } else { - if (!map || map == ft2_oldstyle_map || map->start < ch || map->start + FONT_CHARS_PER_MAP >= ch) + if (!map || map == ft2_oldstyle_map || ch < map->start || ch >= map->start + FONT_CHARS_PER_MAP) { // new charmap - need to render if (batchcount) -- 2.39.2