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
This commit is contained in:
Mike Swanson 2018-09-18 20:48:20 -07:00
parent 50d2f52b21
commit 54a2c31efc

View file

@ -973,8 +973,6 @@ void I_GraphicsCheckCommandLine(void)
if (i > 0)
{
window_width = atoi(myargv[i + 1]);
window_height = window_width * 2;
AdjustWindowSize();
fullscreen = false;
}
@ -990,8 +988,6 @@ void I_GraphicsCheckCommandLine(void)
if (i > 0)
{
window_height = atoi(myargv[i + 1]);
window_width = window_height * 2;
AdjustWindowSize();
fullscreen = false;
}