]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - draw.h
fix a bug with font scale/voffset not surviving r_restart by moving this settings...
[xonotic/darkplaces.git] / draw.h
diff --git a/draw.h b/draw.h
index 1744419b2dc01c918fac9565c5b22f39bdcffad6..2c9ceb31cac658d025630dc253f0f3479457aaac 100644 (file)
--- a/draw.h
+++ b/draw.h
@@ -92,6 +92,7 @@ DRAWFLAG_MIPMAP = 0x100 // ONLY R_BeginPolygon()
 
 typedef struct ft2_settings_s
 {
+       float scale, voffset;
        // cvar parameters (only read on loadfont command)
        int antialias, hinting;
        float outline, blur, shadowx, shadowy, shadowz;
@@ -104,8 +105,6 @@ typedef struct dp_font_s
        rtexture_t *tex;
        float width_of[256]; // width_of[0] == max width of any char; 1.0f is base width (1/16 of texture width); therefore, all widths have to be <= 1 (does not include scale)
        float maxwidth; // precalculated max width of the font (includes scale)
-       float scale; // scales the font (without changing line height!)
-       float voffset; // offsets the font up/down (without changing line position)
        char texpath[MAX_QPATH];
        char title[MAX_QPATH];