mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-09 15:30:41 +00:00
Resolution change detection.
Makes sure that automatic resolution changes resulting from canvas mode switches are applied.
This commit is contained in:
parent
8993052a14
commit
582751ae42
1 changed files with 6 additions and 0 deletions
|
|
@ -106,6 +106,7 @@ function OptionsMenu::onOpen(%this)
|
|||
}
|
||||
|
||||
%this.unappliedChanges.empty();
|
||||
$pref::Video::displayDeviceId = "";
|
||||
|
||||
OptionsMenuCategoryList.setAsActiveMenuList();
|
||||
|
||||
|
|
@ -442,6 +443,11 @@ function populateDisplaySettingsList()
|
|||
%resolution = _makePrettyResString(%resolution);
|
||||
|
||||
OptionsMenuSettingsList.addOptionRow("Resolution", "$pref::Video::Resolution", %resolutionList, false, "", true, "Resolution of the game window", %resolution);
|
||||
|
||||
// If the requested resolution could not be set, mark the control and pref as changed.
|
||||
%resControl = OptionsMenuSettingsList.getObject(OptionsMenuSettingsList.getCount()-1);
|
||||
if (%resControl.getCurrentOption() !$= %resolution)
|
||||
%resControl.onChange();
|
||||
}
|
||||
|
||||
OptionsMenuSettingsList.addOptionBoolRow("VSync", "$pref::Video::enableVerticalSync", $YesNoList, false, "", true, "", "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue