]> git.mxchange.org Git - flightgear.git/commitdiff
make old HUD code work with 8 px font size
authormfranz <mfranz>
Mon, 24 Jul 2006 16:02:56 +0000 (16:02 +0000)
committermfranz <mfranz>
Mon, 24 Jul 2006 16:02:56 +0000 (16:02 +0000)
src/Cockpit/hud.hxx

index b06fa7b23070f8b59eb934fb7aec2ebf30cdfa0d..0907dda83f2998ca05c3bd71bf0e63d411edb6e1 100644 (file)
@@ -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 ) ;
         }