From ee8629835b1dcbba89a625983a66f0b7bc5641c9 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sun, 28 Apr 2024 17:30:02 +0200 Subject: [PATCH] Hide interlaced resolutions from the settings dialog --- rpcs3/rpcs3qt/settings_dialog.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rpcs3/rpcs3qt/settings_dialog.cpp b/rpcs3/rpcs3qt/settings_dialog.cpp index 6e64c2cc8d..837502f64e 100644 --- a/rpcs3/rpcs3qt/settings_dialog.cpp +++ b/rpcs3/rpcs3qt/settings_dialog.cpp @@ -461,7 +461,7 @@ settings_dialog::settings_dialog(std::shared_ptr gui_settings, std SubscribeTooltip(ui->gb_default_resolution, tooltips.settings.resolution); // remove unsupported resolutions from the dropdown bool saved_index_removed = false; - if (game && game->resolution > 0) + //if (game && game->resolution > 0) // Add this line when interlaced resolutions are implemented { const std::map resolutions { @@ -485,7 +485,13 @@ settings_dialog::settings_dialog(std::shared_ptr gui_settings, std const auto [text, value] = get_data(ui->resBox, i); const video_resolution resolution = static_cast(value); - if (!resolutions.contains(resolution) || !(game->resolution & resolutions.at(resolution))) + // Remove interlaced resolutions until they are properly implemented + const bool is_interlaced = (resolution == video_resolution::_1080i || + resolution == video_resolution::_480i || + resolution == video_resolution::_576i); + const bool supported_by_game = !game || (game && game->resolution > 0 && resolutions.contains(resolution) && (game->resolution & resolutions.at(resolution))); + + if (!supported_by_game || is_interlaced) { ui->resBox->removeItem(i); if (i == saved_index)