int i;
cachepic_t *pic;
static double nextpurgetime;
- int purgeframe;
if (nextpurgetime > realtime)
return;
nextpurgetime = realtime + 0.05;
- purgeframe = draw_frame - 1;
for (i = 0, pic = cachepics;i < numcachepics;i++, pic++)
{
if (pic->autoload && pic->tex && pic->lastusedframe < draw_frame)
size_t bytes_left;
ft2_font_map_t *fontmap = NULL;
ft2_font_map_t *map = NULL;
- ft2_font_map_t *prevmap = NULL;
+ //ft2_font_map_t *prevmap = NULL;
ft2_font_t *ft2 = fnt->ft2;
// float ftbase_x;
qboolean snap = true;
qboolean least_one = false;
- float dw, dh; // display w/h
+ float dw; // display w
+ //float dh; // display h
const float *width_of;
if (!h) h = w;
}
dw = w * sw;
- dh = h * sh;
+ //dh = h * sh;
if (*maxlen < 1)
*maxlen = 1<<30;
if (prevch && Font_GetKerningForMap(ft2, map_index, w, h, prevch, ch, &kx, NULL))
x += kx * dw;
x += map->glyphs[mapch].advance_x * dw;
- prevmap = map;
+ //prevmap = map;
prevch = ch;
}
}
Uchar prevch = 0; // used for kerning
int tempcolorindex;
int map_index = 0;
- ft2_font_map_t *prevmap = NULL; // the previous map
+ //ft2_font_map_t *prevmap = NULL; // the previous map
ft2_font_map_t *map = NULL; // the currently used map
ft2_font_map_t *fontmap = NULL; // the font map for the size
float ftbase_y;
av = vertex3f;
}
- prevmap = map;
+ //prevmap = map;
prevch = ch;
}
if (shadow)