shithub: qk2

Download patch

ref: 38a17aa05616a0f792b054ba8ed23a9645b76721
parent: f961e207e8f8a9e544dceb12ca1e554d0bd6ea7e
author: qwx <[email protected]>
date: Sat Jul 24 06:22:51 EDT 2021

vid: fix always checking for valid screen scale

--- a/vid.c
+++ b/vid.c
@@ -201,6 +201,8 @@
 	 * the minimum size of a rio window; the engine handles it
 	 * just fine */
 	scale = Cvar_Get("scale", "", 0);
+	if(strlen(scale->string) == 0)
+		return;
 	if(strlen(scale->string) < 3+1+3){
 		fprint(2, "setscale: invalid resolution\n");
 		return;