fullscreen and windowed mode cli fix update 2

This commit is contained in:
blackwc 2015-10-11 02:34:21 -04:00
parent 5239c2f183
commit ef5bdc66d3
2 changed files with 14 additions and 14 deletions

View file

@ -32,11 +32,6 @@ function configureCanvas()
if ($pref::Video::mode $= "")
$pref::Video::mode = "800 600 false 32 60 0";
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);
%fs = getWord($pref::Video::mode, $WORD::FULLSCREEN);
@ -44,9 +39,14 @@ function configureCanvas()
%rate = getWord($pref::Video::mode, $WORD::REFRESH);
%fsaa = getWord($pref::Video::mode, $WORD::AA);
echo("--------------");
echo("Attempting to set resolution to \"" @ $pref::Video::mode @ "\"");
if($cliFullscreen !$= "") {
%fs = $cliFullscreen;
$cliFullscreen = "";
}
echo("--------------");
echo("Attempting to set resolution to \"" @ %resX SPC %resY SPC %fs SPC %bpp SPC %rate SPC %fsaa @ "\"");
%deskRes = getDesktopResolution();
%deskResX = getWord(%deskRes, $WORD::RES_X);
%deskResY = getWord(%deskRes, $WORD::RES_Y);

View file

@ -32,11 +32,6 @@ function configureCanvas()
if ($pref::Video::mode $= "")
$pref::Video::mode = "800 600 false 32 60 0";
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);
%fs = getWord($pref::Video::mode, $WORD::FULLSCREEN);
@ -44,9 +39,14 @@ function configureCanvas()
%rate = getWord($pref::Video::mode, $WORD::REFRESH);
%fsaa = getWord($pref::Video::mode, $WORD::AA);
echo("--------------");
echo("Attempting to set resolution to \"" @ $pref::Video::mode @ "\"");
if($cliFullscreen !$= "") {
%fs = $cliFullscreen;
$cliFullscreen = "";
}
echo("--------------");
echo("Attempting to set resolution to \"" @ %resX SPC %resY SPC %fs SPC %bpp SPC %rate SPC %fsaa @ "\"");
%deskRes = getDesktopResolution();
%deskResX = getWord(%deskRes, $WORD::RES_X);
%deskResY = getWord(%deskRes, $WORD::RES_Y);