mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 12:41:21 +00:00
Fix render artifacts around health points when the HUD is scaled.
In SCR_DrawFieldScaled() the HUD scale factor wasn't taken into account when calculating the screen area affected by the change. Therefor wrong coordinates were passed to SCR_AddDirtyPoint() and a part of the changed area wasn't marked dirty, leading to render artifacts. This bug was present since HUD scaling was first introduced.
This commit is contained in:
parent
7b5e13d4ff
commit
e510bfc281
1 changed files with 1 additions and 1 deletions
|
@ -949,7 +949,7 @@ SCR_DrawFieldScaled(int x, int y, int color, int width, int value, float factor)
|
|||
}
|
||||
|
||||
SCR_AddDirtyPoint(x, y);
|
||||
SCR_AddDirtyPoint(x + (width * CHAR_WIDTH + 2)*factor, y + 23);
|
||||
SCR_AddDirtyPoint(x + (width * CHAR_WIDTH + 2)*factor, y + factor*24);
|
||||
|
||||
Com_sprintf(num, sizeof(num), "%i", value);
|
||||
l = (int)strlen(num);
|
||||
|
|
Loading…
Reference in a new issue