fix erronous "Could not set custom resolution" warning on startup
the cvars may have not been initialised yet to anything just return -2 and ignore
This commit is contained in:
1 parent
8a8cbffd12
commit
a05413d925
1 file changed
+4
@@ -1575,6 +1575,10 @@ static int IsCustomResolutionInList(int list_size)
|
||||
INT32 custom_w = cv_scr_width.value;
|
||||
INT32 custom_h = cv_scr_height.value;
|
||||
|
||||
// startup
|
||||
if (!custom_w || !custom_h)
|
||||
return -2;
|
||||
|
||||
// invalid resolution
|
||||
// dont even attempt to add it
|
||||
if (custom_w < BASEVIDWIDTH || custom_w > MAXVIDWIDTH
|
||||
|
||||
Reference in new issue
Block a user