From a6c8610682b36f3c4b3a2241d51506e518ff173b Mon Sep 17 00:00:00 2001 From: mfranz Date: Mon, 24 Jul 2006 16:02:56 +0000 Subject: [PATCH] make old HUD code work with 8 px font size --- src/Cockpit/hud.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Cockpit/hud.hxx b/src/Cockpit/hud.hxx index b06fa7b23..0907dda83 100644 --- a/src/Cockpit/hud.hxx +++ b/src/Cockpit/hud.hxx @@ -323,6 +323,7 @@ public: c++; i++; } + float orig_size = fnt->getPointSize(); if (c>p) { fnt->setPointSize(HUD_TextSize * 0.8); int p1=c-3; @@ -344,9 +345,9 @@ public: fnt->start2f( x, y ); fnt->puts(tmp); } + fnt->setPointSize(orig_size); } else { //if digits not equal to 1 - fnt->setPointSize(HUD_TextSize * 0.8); fnt->start2f( x, y ); fnt->puts( msg ) ; }