From: mfranz Date: Mon, 24 Jul 2006 16:02:56 +0000 (+0000) Subject: make old HUD code work with 8 px font size X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a6c8610682b36f3c4b3a2241d51506e518ff173b;p=flightgear.git make old HUD code work with 8 px font size --- 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 ) ; }