Skip to content

Commit

Permalink
- set sane limits for vid_scale_custompixelaspect
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Dec 31, 2019
1 parent f647f3c commit 5389d8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rendering/r_videoscale.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 5389d8a

Please sign in to comment.