mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-01-31 04:30:38 +00:00
Fix up alignment with r_speeds.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5825 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
9dd692c4bb
commit
8ba2b21c5d
1 changed files with 20 additions and 21 deletions
|
@ -101,20 +101,19 @@ void RSpeedShow(void)
|
|||
{
|
||||
for (i = 0; i < RSPEED_MAX; i++)
|
||||
{
|
||||
Draw_FunStringWidthFont(font_console, vid.width-20*tsize, i*tsize, RSpNames[i], 20*tsize, false, false);
|
||||
s = va("%g ", samplerspeeds[i]/(float)frameinterval);
|
||||
Draw_FunStringWidthFont(font_console, 0, i*tsize, s, vid.width-20*tsize, true, false);
|
||||
s = va("%g %-24s", samplerspeeds[i]/(float)frameinterval, RSpNames[i]);
|
||||
Draw_FunStringWidthFont(font_console, 0, i*tsize, s, vid.width, true, false);
|
||||
}
|
||||
}
|
||||
for (i = 0; i < RQUANT_MAX; i++)
|
||||
{
|
||||
s = va("%u.%.3u %-20s", samplerquant[i]/frameinterval, (samplerquant[i]%100), RQntNames[i]);
|
||||
Draw_FunStringWidthFont(font_console, 0, (i+RSPEED_MAX)*tsize, s, vid.width-20*tsize, true, false);
|
||||
s = va("%u.%.3u %-24s", samplerquant[i]/frameinterval, (samplerquant[i]%100), RQntNames[i]);
|
||||
Draw_FunStringWidthFont(font_console, 0, (i+RSPEED_MAX)*tsize, s, vid.width, true, false);
|
||||
}
|
||||
if (r_speeds.ival > 1)
|
||||
{
|
||||
s = va("%f %-20s", (frameinterval*1000*1000.0f)/samplerspeeds[RSPEED_TOTALREFRESH], "Framerate (refresh only)");
|
||||
Draw_FunStringWidthFont(font_console, 0, (i+RSPEED_MAX)*tsize, s, vid.width-20*tsize, true, false);
|
||||
s = va("%f %-24s", (frameinterval*1000*1000.0f)/samplerspeeds[RSPEED_TOTALREFRESH], "Framerate (refresh only)");
|
||||
Draw_FunStringWidthFont(font_console, 0, (i+RSPEED_MAX)*tsize, s, vid.width, true, false);
|
||||
}
|
||||
memcpy(rquant, savedsamplerquant, sizeof(rquant));
|
||||
|
||||
|
|
Loading…
Reference in a new issue