Fixed bug in display options UI writing incorrect values.

This commit is contained in:
Marc Chapman 2019-10-18 04:25:49 +01:00
parent 40cdc29e0c
commit 326908aa3d
2 changed files with 9 additions and 2 deletions

View file

@ -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)

View file

@ -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" )
{ {