]> git.mxchange.org Git - flightgear.git/commitdiff
no more FONT_(LARGE|SMALL) (didn't work, anyway, and isn't needed)
authormfranz <mfranz>
Tue, 25 Jul 2006 22:21:56 +0000 (22:21 +0000)
committermfranz <mfranz>
Tue, 25 Jul 2006 22:21:56 +0000 (22:21 +0000)
src/Instrumentation/HUD/HUD.hxx
src/Instrumentation/HUD/HUD_label.cxx

index a521763170165f00e4779c5659f658f0590277b0..113baf67b1a580e682e9f16fed69cae0ff35615b 100644 (file)
@@ -423,11 +423,6 @@ private:
         STRING,
     };
 
-    enum FontSize {
-        FONT_SMALL,
-        FONT_LARGE
-    };
-
     Format  check_format(const char *) const;
     bool    blink();
 
@@ -435,7 +430,6 @@ private:
     Format  _mode;
     string  _format;
     Adjust  _halign;
-    int     _fontsize;
     int     _blink;
     bool    _box;
     float   _text_y;
index 17fc2798de1413a0e507a0e89595f7aa24cb5c93..3c33245c4d9cc27980909e4204f870fac7175e95 100644 (file)
@@ -30,7 +30,6 @@
 HUD::Label::Label(HUD *hud, const SGPropertyNode *n, float x, float y) :
     Item(hud, n, x, y),
     _input(n->getNode("input", false)),
-    _fontsize(fgGetInt("/sim/startup/xsize") > 1000 ? FONT_LARGE : FONT_SMALL),                // FIXME
     _box(n->getBoolValue("box", false)),
     _pointer_width(n->getFloatValue("pointer-width", 7.0)),
     _pointer_length(n->getFloatValue("pointer-length", 5.0)),
@@ -170,11 +169,7 @@ void HUD::Label::draw(void)
         posincr = 0;
 
     posincr += _hud->_font->getGap() / 2.0 - L;
-
-    if (_fontsize == FONT_SMALL)
-        draw_text(_x + posincr, _text_y, buf, get_digits());
-    else if (_fontsize == FONT_LARGE)
-        draw_text(_x + posincr, _text_y, buf, get_digits());
+    draw_text(_x + posincr, _text_y, buf, get_digits());
 }