Skip to content

Commit

Permalink
Disable resolution confirmation prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
orazioedoardo committed Dec 31, 2023
1 parent a106122 commit b673bfb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/ui/PreferencesScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,17 +302,17 @@ void PreferencesScreen::_setupCallbacks() {
return Action::DO_NOTHING;
};
callbacks["ok"] = [this] () {
const bool wasFullscreen = lif::options.fullscreen;
const auto formerVideoMode = lif::options.videoMode;
// const bool wasFullscreen = lif::options.fullscreen;
// const auto formerVideoMode = lif::options.videoMode;
lif::options.fullscreen = desiredFullscreen;
if (fullscreenModes.size() > 0) {
lif::options.videoMode = fullscreenModes[desiredFullscreenModeIdx];
}
if (lif::options.fullscreen != wasFullscreen || lif::options.videoMode != formerVideoMode) {
if (lif::options.fullscreen)
_setMustConfirmRes(true);
return Action::DO_NOTHING;
}
// if (lif::options.fullscreen != wasFullscreen || lif::options.videoMode != formerVideoMode) {
// if (lif::options.fullscreen)
// _setMustConfirmRes(true);
// return Action::DO_NOTHING;
// }

return Action::SWITCH_TO_PARENT;
};
Expand Down

0 comments on commit b673bfb

Please sign in to comment.