mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Tweak showfps alignment
This commit is contained in:
parent
0cd3629d00
commit
4a580558f0
1 changed files with 13 additions and 12 deletions
23
src/screen.c
23
src/screen.c
|
@ -547,20 +547,21 @@ void SCR_DisplayTicRate(void)
|
|||
}
|
||||
else if (cv_ticrate.value == 1) // full counter
|
||||
{
|
||||
const char *drawnstr;
|
||||
INT32 width;
|
||||
|
||||
// The highest assignable cap is < 1000, so 3 characters is fine.
|
||||
if (cap > 0)
|
||||
{
|
||||
V_DrawString(vid.width-(104*vid.dupx), h,
|
||||
V_YELLOWMAP|V_NOSCALESTART|V_USERHUDTRANS, "FPS:");
|
||||
V_DrawString(vid.width-(72*vid.dupx), h,
|
||||
ticcntcolor|V_NOSCALESTART|V_USERHUDTRANS, va("%4.0f/%4u", fps, cap));
|
||||
}
|
||||
drawnstr = va("%3.0f/%3u", fps, cap);
|
||||
else
|
||||
{
|
||||
V_DrawString(vid.width-(88*vid.dupx), h,
|
||||
drawnstr = va("%4.2f", averageFPS);
|
||||
|
||||
width = V_StringWidth(drawnstr, V_NOSCALESTART);
|
||||
|
||||
V_DrawString(vid.width - ((7 * 8 * vid.dupx) + V_StringWidth("FPS: ", V_NOSCALESTART)), h,
|
||||
V_YELLOWMAP|V_NOSCALESTART|V_USERHUDTRANS, "FPS:");
|
||||
V_DrawString(vid.width-(56*vid.dupx), h,
|
||||
ticcntcolor|V_NOSCALESTART|V_USERHUDTRANS, va("%4.0f", fps));
|
||||
}
|
||||
V_DrawString(vid.width - width, h,
|
||||
ticcntcolor|V_NOSCALESTART|V_USERHUDTRANS, drawnstr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue