]> git.rm.cloudns.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)
committervortex <vortex@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 1 Jun 2010 19:24:45 +0000 (19:24 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10222 d7cf8633-e32d-0410-b094-e92efae38249

gl_draw.c

index e65ba36726e9773944f656179097cff10e7c70c1..43f418afd19964d36e7ad435c9429a0ef774ca80 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