mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
fullscreen and windowed mode cli fix update 2
This commit is contained in:
parent
5239c2f183
commit
ef5bdc66d3
2 changed files with 14 additions and 14 deletions
|
|
@ -32,11 +32,6 @@ function configureCanvas()
|
||||||
if ($pref::Video::mode $= "")
|
if ($pref::Video::mode $= "")
|
||||||
$pref::Video::mode = "800 600 false 32 60 0";
|
$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);
|
%resX = getWord($pref::Video::mode, $WORD::RES_X);
|
||||||
%resY = getWord($pref::Video::mode, $WORD::RES_Y);
|
%resY = getWord($pref::Video::mode, $WORD::RES_Y);
|
||||||
%fs = getWord($pref::Video::mode, $WORD::FULLSCREEN);
|
%fs = getWord($pref::Video::mode, $WORD::FULLSCREEN);
|
||||||
|
|
@ -44,9 +39,14 @@ function configureCanvas()
|
||||||
%rate = getWord($pref::Video::mode, $WORD::REFRESH);
|
%rate = getWord($pref::Video::mode, $WORD::REFRESH);
|
||||||
%fsaa = getWord($pref::Video::mode, $WORD::AA);
|
%fsaa = getWord($pref::Video::mode, $WORD::AA);
|
||||||
|
|
||||||
echo("--------------");
|
if($cliFullscreen !$= "") {
|
||||||
echo("Attempting to set resolution to \"" @ $pref::Video::mode @ "\"");
|
%fs = $cliFullscreen;
|
||||||
|
$cliFullscreen = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo("--------------");
|
||||||
|
echo("Attempting to set resolution to \"" @ %resX SPC %resY SPC %fs SPC %bpp SPC %rate SPC %fsaa @ "\"");
|
||||||
|
|
||||||
%deskRes = getDesktopResolution();
|
%deskRes = getDesktopResolution();
|
||||||
%deskResX = getWord(%deskRes, $WORD::RES_X);
|
%deskResX = getWord(%deskRes, $WORD::RES_X);
|
||||||
%deskResY = getWord(%deskRes, $WORD::RES_Y);
|
%deskResY = getWord(%deskRes, $WORD::RES_Y);
|
||||||
|
|
|
||||||
|
|
@ -32,11 +32,6 @@ function configureCanvas()
|
||||||
if ($pref::Video::mode $= "")
|
if ($pref::Video::mode $= "")
|
||||||
$pref::Video::mode = "800 600 false 32 60 0";
|
$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);
|
%resX = getWord($pref::Video::mode, $WORD::RES_X);
|
||||||
%resY = getWord($pref::Video::mode, $WORD::RES_Y);
|
%resY = getWord($pref::Video::mode, $WORD::RES_Y);
|
||||||
%fs = getWord($pref::Video::mode, $WORD::FULLSCREEN);
|
%fs = getWord($pref::Video::mode, $WORD::FULLSCREEN);
|
||||||
|
|
@ -44,9 +39,14 @@ function configureCanvas()
|
||||||
%rate = getWord($pref::Video::mode, $WORD::REFRESH);
|
%rate = getWord($pref::Video::mode, $WORD::REFRESH);
|
||||||
%fsaa = getWord($pref::Video::mode, $WORD::AA);
|
%fsaa = getWord($pref::Video::mode, $WORD::AA);
|
||||||
|
|
||||||
echo("--------------");
|
if($cliFullscreen !$= "") {
|
||||||
echo("Attempting to set resolution to \"" @ $pref::Video::mode @ "\"");
|
%fs = $cliFullscreen;
|
||||||
|
$cliFullscreen = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo("--------------");
|
||||||
|
echo("Attempting to set resolution to \"" @ %resX SPC %resY SPC %fs SPC %bpp SPC %rate SPC %fsaa @ "\"");
|
||||||
|
|
||||||
%deskRes = getDesktopResolution();
|
%deskRes = getDesktopResolution();
|
||||||
%deskResX = getWord(%deskRes, $WORD::RES_X);
|
%deskResX = getWord(%deskRes, $WORD::RES_X);
|
||||||
%deskResY = getWord(%deskRes, $WORD::RES_Y);
|
%deskResY = getWord(%deskRes, $WORD::RES_Y);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue