1
0
Fork 0

no more FONT_(LARGE|SMALL) (didn't work, anyway, and isn't needed)

This commit is contained in:
mfranz 2006-07-25 22:21:56 +00:00
parent 9799f05bb7
commit 5d10e338d5
2 changed files with 1 additions and 12 deletions

View 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;

View 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,10 +169,6 @@ 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());
}