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 d433b28f8f
commit e1f0931255
2 changed files with 9 additions and 2 deletions

View file

@ -367,7 +367,7 @@ function OptionsMenuBackSetting::onClick(%this)
//advance by one
%newSetting = getToken(%settingsList, ",", %currentSettingIdx);
eval(%settingCtrl.qualitySettingGroup@"::set("@%newSetting@");");
eval(%settingCtrl.qualitySettingGroup@"::set(\""@%newSetting@"\");");
%settingCtrl-->SettingText.setText( %newSetting );
if(%currentSettingIdx == %settingsListCount)

View file

@ -38,7 +38,14 @@ function DisplayMenu::apply(%this)
}
//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" )
{