- set sane limits for vid_scale_custompixelaspect

This commit is contained in:
Rachael Alexanderson 2019-12-31 15:21:47 -05:00
parent f647f3c132
commit 5389d8ad1a

View file

@ -57,6 +57,8 @@ CVAR(Bool, vid_scale_linear, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
CUSTOM_CVAR(Float, vid_scale_custompixelaspect, 1.0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
{
setsizeneeded = true;
if (self < 0.2 || self > 5.0)
self = 1.0;
}
namespace