From: vortex Date: Tue, 1 Jun 2010 19:24:45 +0000 (+0000) Subject: fix defaultfont scale bug (which makes it invisible) X-Git-Tag: xonotic-v0.1.0preview~230^2~256 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b05148d85987f1a5d31ee319926c896a4a95c0d3;p=xonotic%2Fdarkplaces.git fix defaultfont scale bug (which makes it invisible) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10222 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_draw.c b/gl_draw.c index e65ba367..43f418af 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -563,6 +563,9 @@ void LoadFont(qboolean override, const char *name, dp_font_t *fnt, float scale, fnt->settings.shadowy = r_font_postprocess_shadow_y.value; 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