Add mode to force 50:50 ratio in fullscreen mode

This commit is contained in:
Lorenzooone
2025-03-02 17:22:57 +01:00
parent 829fbb7949
commit 065fecff6e
7 changed files with 140 additions and 17 deletions

View File

@@ -376,6 +376,12 @@ void WindowScreen::rotation_change(int &value, bool right) {
this->future_operations.call_rotate = true;
}
void WindowScreen::force_same_scaling_change() {
this->m_info.force_same_scaling = !this->m_info.force_same_scaling;
this->prepare_size_ratios(true, true, false);
this->future_operations.call_screen_settings_update = true;
}
void WindowScreen::ratio_change(bool top_priority, bool cycle) {
this->prepare_size_ratios(top_priority, !top_priority, cycle);
this->future_operations.call_screen_settings_update = true;
@@ -1926,6 +1932,9 @@ void WindowScreen::poll(bool do_everything) {
case SCALING_RATIO_MENU_ALGO_INC:
this->non_int_mode_change(true);
break;
case SCALING_RATIO_MENU_FORCE_SAME_SCALING:
this->force_same_scaling_change();
break;
default:
break;
}