fullscreen and windowed mode cli fix update

This commit is contained in:
blackwc 2015-10-07 04:56:36 -04:00
parent 6d6055c873
commit 5239c2f183
2 changed files with 6 additions and 2 deletions

View file

@ -32,8 +32,10 @@ function configureCanvas()
if ($pref::Video::mode $= "")
$pref::Video::mode = "800 600 false 32 60 0";
if($cliFullscreen !$="")
if($cliFullscreen !$= "") {
$pref::Video::mode = setWord($pref::Video::mode, $WORD::FULLSCREEN, $cliFullScreen);
$cliFullscreen = "";
}
%resX = getWord($pref::Video::mode, $WORD::RES_X);
%resY = getWord($pref::Video::mode, $WORD::RES_Y);