- fixed: the statistics display didn't take the HUD's scale factor into account.

Fixes #229
This commit is contained in:
Christoph Oelckers 2020-12-10 19:20:24 +01:00
parent a8fd2e7ec3
commit fdd9c10a55
2 changed files with 3 additions and 3 deletions

View File

@ -144,11 +144,11 @@ void DBaseStatusBar::PrintLevelStats(FLevelStats &stats)
double spacing = stats.spacing * hud_statscale;
if (stats.screenbottomspace < 0)
{
y = 200 - RelTop - spacing - 1;
y = 200 - (RelTop - stats.screenbottomspace) * hud_scalefactor - spacing;
}
else
{
y = 200 - stats.screenbottomspace - spacing;
y = 200 - stats.screenbottomspace * hud_scalefactor - spacing;
}
double y1, y2, y3;

View File

@ -683,7 +683,7 @@ private:
DisplayTimeLimit(pp);
DisplayBarInventory(pp);
DrawCompass(pp);
PrintLevelStats(-1);
PrintLevelStats(-3);
}
//---------------------------------------------------------------------------