Screen: Clamp scale to a minimum of 1, except for the HUD

This commit is contained in:
svdijk 2015-12-19 20:34:02 +01:00
parent 54b6d276b2
commit 5c54521199

View file

@ -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);