shithub: choc

Download patch

ref: 54a2c31efc2242d130aecae0b79922e4a92d4a08
parent: 50d2f52b210d649cf057dccdadcc77b8107add3f
author: Mike Swanson <[email protected]>
date: Tue Sep 18 16:48:20 EDT 2018

video: remove errant code for the -width and -height parameters

This prevented either paramater from working properly, since they
would be incorrectly trying to set the other dimension and immediately
switching video modes.  Now works like -geometry does.

Resolves #1086

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -973,8 +973,6 @@
     if (i > 0)
     {
         window_width = atoi(myargv[i + 1]);
-        window_height = window_width * 2;
-        AdjustWindowSize();
         fullscreen = false;
     }
 
@@ -990,8 +988,6 @@
     if (i > 0)
     {
         window_height = atoi(myargv[i + 1]);
-        window_width = window_height * 2;
-        AdjustWindowSize();
         fullscreen = false;
     }