From 5534363cd693d1486e994d0fc2e21185fb2d9ff8 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Fri, 5 Jan 2024 03:39:56 +1000 Subject: [PATCH] font: fix missing text in r_speeds (etc) This bug was introduced in 5468c81f47e6644d938e3cfedd21567b2936cd72 Signed-off-by: bones_was_here --- gl_draw.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gl_draw.c b/gl_draw.c index bc4d34f1..ea879897 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -339,9 +339,6 @@ void LoadFont(qbool override, const char *name, dp_font_t *fnt, float scale, flo strlcpy(fnt->texpath, name, sizeof(fnt->texpath)); // load the cvars when the font is FIRST loader fnt->settings.scale = scale; - // fix bad scale - if (fnt->settings.scale <= 0) - fnt->settings.scale = 1; fnt->settings.voffset = voffset; fnt->settings.antialias = r_font_antialias.integer; fnt->settings.hinting = r_font_hinting.integer; @@ -352,6 +349,10 @@ void LoadFont(qbool override, const char *name, dp_font_t *fnt, float scale, flo fnt->settings.shadowz = r_font_postprocess_shadow_z.value; } + // fix bad scale + if (fnt->settings.scale <= 0) + fnt->settings.scale = 1; + if(drawtexturepool == NULL) return; // before gl_draw_start, so will be loaded later -- 2.39.2