improved UR loading

This commit is contained in:
2023-09-26 13:37:19 +00:00
parent 9a1f1408a6
commit db8e59a8eb
4 changed files with 67 additions and 63 deletions

View File

@@ -118,9 +118,6 @@ struct sFont *MakeFont(const char *fontfile, int height) {
struct sFont *newfont = calloc(1, sizeof(struct sFont));
newfont->height = height;
char fontpath[256];
snprintf(fontpath, 256, "fonts/%s", fontfile);
unsigned char *ttf_buffer = slurp_file(fontfile, NULL);
unsigned char *bitmap = malloc(packsize * packsize);