Skip to content

Commit

Permalink
GUI: Do not disable Aspect ratio checkbox with only-fullscreen option
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Oct 9, 2016
1 parent ebc8e55 commit 4cb8596
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gui/options.cpp
Expand Up @@ -238,11 +238,10 @@ void OptionsDialog::open() {
#ifdef GUI_ONLY_FULLSCREEN
_fullscreenCheckbox->setState(true);
_fullscreenCheckbox->setEnabled(false);
_aspectCheckbox->setState(ConfMan.getBool("aspect_ratio", _domain));
_aspectCheckbox->setEnabled(false);
#else // !GUI_ONLY_FULLSCREEN
// Fullscreen setting
_fullscreenCheckbox->setState(ConfMan.getBool("fullscreen", _domain));
#endif // GUI_ONLY_FULLSCREEN

// Aspect ratio setting
if (_guioptions.contains(GUIO_NOASPECT)) {
Expand All @@ -252,7 +251,6 @@ void OptionsDialog::open() {
_aspectCheckbox->setEnabled(true);
_aspectCheckbox->setState(ConfMan.getBool("aspect_ratio", _domain));
}
#endif // GUI_ONLY_FULLSCREEN

}

Expand Down

0 comments on commit 4cb8596

Please sign in to comment.