Move font resize in a separate function

This commit is contained in:
Francesco Abbate
2020-06-06 19:11:14 +02:00
parent 8e796831f2
commit 81289d651e
4 changed files with 25 additions and 13 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ RenFont* ren_load_font(const char *filename, float size) {
font->size = size;
const float gamma = 1.5;
font->renderer = FontRendererNew(FONT_RENDERER_HINTING, gamma);
font->renderer = FontRendererNew(FONT_RENDERER_HINTING|FONT_RENDERER_SUBPIXEL, gamma);
if (FontRendererLoadFont(font->renderer, filename)) {
free(font);
return NULL;