mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Fixed bug in display options UI writing incorrect values.
This commit is contained in:
parent
d433b28f8f
commit
e1f0931255
2 changed files with 9 additions and 2 deletions
|
|
@ -367,7 +367,7 @@ function OptionsMenuBackSetting::onClick(%this)
|
||||||
|
|
||||||
//advance by one
|
//advance by one
|
||||||
%newSetting = getToken(%settingsList, ",", %currentSettingIdx);
|
%newSetting = getToken(%settingsList, ",", %currentSettingIdx);
|
||||||
eval(%settingCtrl.qualitySettingGroup@"::set("@%newSetting@");");
|
eval(%settingCtrl.qualitySettingGroup@"::set(\""@%newSetting@"\");");
|
||||||
%settingCtrl-->SettingText.setText( %newSetting );
|
%settingCtrl-->SettingText.setText( %newSetting );
|
||||||
|
|
||||||
if(%currentSettingIdx == %settingsListCount)
|
if(%currentSettingIdx == %settingsListCount)
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,14 @@ function DisplayMenu::apply(%this)
|
||||||
}
|
}
|
||||||
|
|
||||||
//Update the display settings now
|
//Update the display settings now
|
||||||
$pref::Video::Resolution = getWord( $pref::Video::Resolution, 0 ) SPC getWord( $pref::Video::Resolution, 2 );
|
if (getWord( $pref::Video::Resolution, 2) == "")
|
||||||
|
{
|
||||||
|
$pref::Video::Resolution = getWord( $pref::Video::Resolution, 0 ) SPC getWord( $pref::Video::Resolution, 1 );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$pref::Video::Resolution = getWord( $pref::Video::Resolution, 0 ) SPC getWord( $pref::Video::Resolution, 2 );
|
||||||
|
}
|
||||||
|
|
||||||
/*if ( %newFullScreen $= "false" )
|
/*if ( %newFullScreen $= "false" )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue