mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-21 00:41:05 +00:00
Screen: Clamp scale to a minimum of 1, except for the HUD
This commit is contained in:
parent
54b6d276b2
commit
5c54521199
1 changed files with 9 additions and 0 deletions
|
@ -1569,6 +1569,11 @@ SCR_ClampScale(float scale)
|
|||
scale = f;
|
||||
}
|
||||
|
||||
if (scale < 1)
|
||||
{
|
||||
scale = 1;
|
||||
}
|
||||
|
||||
return scale;
|
||||
}
|
||||
|
||||
|
@ -1638,6 +1643,10 @@ SCR_GetHUDScale(void)
|
|||
{
|
||||
scale = SCR_GetDefaultScale();
|
||||
}
|
||||
else if (gl_hudscale->value == 0) /* HACK: allow scale 0 to hide the HUD */
|
||||
{
|
||||
scale = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
scale = SCR_ClampScale(gl_hudscale->value);
|
||||
|
|
Loading…
Reference in a new issue