]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix defaultfont scale bug (which makes it invisible)
authorvortex <vortex@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 1 Jun 2010 19:24:45 +0000 (19:24 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 5 Jun 2010 11:28:38 +0000 (13:28 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10222 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=b05148d85987f1a5d31ee319926c896a4a95c0d3

gl_draw.c

index cfba5889e756b5119b9caab2754cc38fe7b258bf..d54410a6bd4ef82889f8cb89ed6fd4a4118372d1 100644 (file)
--- 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