From 5389d8ad1a771fbff8e56d4b830d3ef1bb4b20b4 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Tue, 31 Dec 2019 15:21:47 -0500 Subject: [PATCH] - set sane limits for vid_scale_custompixelaspect --- src/rendering/r_videoscale.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rendering/r_videoscale.cpp b/src/rendering/r_videoscale.cpp index 8d6bc81eb..c3da10438 100644 --- a/src/rendering/r_videoscale.cpp +++ b/src/rendering/r_videoscale.cpp @@ -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