lru cache now works as intended

This commit is contained in:
Alessandro Mauri 2023-03-12 13:43:30 +01:00
parent 8c1f4f5ee2
commit 5455449bf9
5 changed files with 54 additions and 29 deletions

View file

@ -62,7 +62,7 @@ int font_load(struct font_atlas *atlas, const char *path, int size)
dump_file(path, &(atlas->file), &(atlas->file_size));
err = stbtt_InitFont(&(PRIV(atlas)->stb), (unsigned char *)atlas->file, 0);
ERROR(err == 0, -1);
if (err == 0) return -1;
int ascent, descent, linegap, baseline;
int x0,y0,x1,y1;