mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-04-03 17:01:17 +00:00
screen: simplify SCR_GetHUDScale.
This commit is contained in:
parent
9ae8192f04
commit
013ad4aa45
1 changed files with 3 additions and 2 deletions
|
@ -1586,10 +1586,11 @@ SCR_GetHUDScale(void)
|
|||
if (gl_hudscale->value < 0)
|
||||
{
|
||||
int i = viddef.width / 640;
|
||||
int j = viddef.height / 240;
|
||||
|
||||
while (i > viddef.height / 240)
|
||||
if (i > j)
|
||||
{
|
||||
i--;
|
||||
i = j;
|
||||
}
|
||||
if (i < 1)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue