mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- Fix stat output to use the console scale
This commit is contained in:
parent
cdc0bf1cd5
commit
f593e2aa3c
1 changed files with 7 additions and 2 deletions
|
@ -89,8 +89,10 @@ void FStat::ToggleStat ()
|
||||||
|
|
||||||
void FStat::PrintStat ()
|
void FStat::PrintStat ()
|
||||||
{
|
{
|
||||||
|
int textScale = active_con_scale();
|
||||||
|
|
||||||
int fontheight = ConFont->GetHeight() + 1;
|
int fontheight = ConFont->GetHeight() + 1;
|
||||||
int y = SCREENHEIGHT;
|
int y = SCREENHEIGHT / textScale;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
for (FStat *stat = FirstStat; stat != NULL; stat = stat->m_Next)
|
for (FStat *stat = FirstStat; stat != NULL; stat = stat->m_Next)
|
||||||
|
@ -107,7 +109,10 @@ void FStat::PrintStat ()
|
||||||
// Count number of linefeeds but ignore terminating ones.
|
// Count number of linefeeds but ignore terminating ones.
|
||||||
if (stattext[i] == '\n') y -= fontheight;
|
if (stattext[i] == '\n') y -= fontheight;
|
||||||
}
|
}
|
||||||
screen->DrawText(ConFont, CR_GREEN, 5, y, stattext, TAG_DONE);
|
screen->DrawText(ConFont, CR_GREEN, 5 / textScale, y, stattext,
|
||||||
|
DTA_VirtualWidth, screen->GetWidth() / textScale,
|
||||||
|
DTA_VirtualHeight, screen->GetHeight() / textScale,
|
||||||
|
DTA_KeepRatio, true, TAG_DONE);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue