mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-04 12:05:13 +00:00
Merge pull request #1434 from blackwc/fullscreen-cli-fix
fullscreen and windowed mode cli fix
This commit is contained in:
commit
5947933f99
4 changed files with 18 additions and 8 deletions
|
|
@ -141,11 +141,11 @@ function parseArgs()
|
|||
switch$ (%arg)
|
||||
{
|
||||
case "-fullscreen":
|
||||
setFullScreen(true);
|
||||
$cliFullscreen = true;
|
||||
$argUsed[%i]++;
|
||||
|
||||
case "-windowed":
|
||||
setFullScreen(false);
|
||||
$cliFullscreen = false;
|
||||
$argUsed[%i]++;
|
||||
|
||||
case "-openGL":
|
||||
|
|
|
|||
|
|
@ -39,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);
|
||||
|
|
|
|||
|
|
@ -141,11 +141,11 @@ function parseArgs()
|
|||
switch$ (%arg)
|
||||
{
|
||||
case "-fullscreen":
|
||||
setFullScreen(true);
|
||||
$cliFullscreen = true;
|
||||
$argUsed[%i]++;
|
||||
|
||||
case "-windowed":
|
||||
setFullScreen(false);
|
||||
$cliFullscreen = false;
|
||||
$argUsed[%i]++;
|
||||
|
||||
case "-openGL":
|
||||
|
|
|
|||
|
|
@ -39,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue