1
0
Fork 0

make old HUD code work with 8 px font size

This commit is contained in:
mfranz 2006-07-24 16:02:56 +00:00
parent bd9ec88355
commit a6c8610682

View file

@ -323,6 +323,7 @@ public:
c++; c++;
i++; i++;
} }
float orig_size = fnt->getPointSize();
if (c>p) { if (c>p) {
fnt->setPointSize(HUD_TextSize * 0.8); fnt->setPointSize(HUD_TextSize * 0.8);
int p1=c-3; int p1=c-3;
@ -344,9 +345,9 @@ public:
fnt->start2f( x, y ); fnt->start2f( x, y );
fnt->puts(tmp); fnt->puts(tmp);
} }
fnt->setPointSize(orig_size);
} else { } else {
//if digits not equal to 1 //if digits not equal to 1
fnt->setPointSize(HUD_TextSize * 0.8);
fnt->start2f( x, y ); fnt->start2f( x, y );
fnt->puts( msg ) ; fnt->puts( msg ) ;
} }