mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-21 00:41:05 +00:00
Calculate the correct offset for the cl_drawfps 1 framecounter.
We need to take in account that scaling the characters makes them bigger, thus they need need to be places depending on the scale and not at a precaclulated position. This should fix issue #247.
This commit is contained in:
parent
8bfcfa7e70
commit
4bfd1cb9d4
1 changed files with 1 additions and 1 deletions
|
@ -1445,7 +1445,7 @@ SCR_Framecounter(void) {
|
|||
|
||||
char str[10];
|
||||
snprintf(str, sizeof(str), "%3.2ffps", (1000.0 * 1000.0) / (avg / num));
|
||||
DrawStringScaled(scale*(viddef.width - 80), 0, str, scale);
|
||||
DrawStringScaled(viddef.width - scale*(strlen(str)*8 + 2), 0, str, scale);
|
||||
} else if (cl_drawfps->value >= 2) {
|
||||
// Calculate average of frames.
|
||||
int avg = 0;
|
||||
|
|
Loading…
Reference in a new issue