Merge pull request #12225 from AdmiralCurtiss/resolution-dropdown-fix

Qt/EnhancementsWidget: Fix size of resolution dropdown.
This commit is contained in:
Admiral H. Curtiss 2023-10-10 19:29:22 +02:00 committed by GitHub
commit 6aadfd522b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ void EnhancementsWidget::CreateWidgets()
tr("720p"), tr("1080p"), tr("1440p"), QStringLiteral(""),
tr("4K"), QStringLiteral(""), tr("5K"), QStringLiteral(""),
QStringLiteral(""), QStringLiteral(""), tr("8K")};
const int visible_resolution_option_count = static_cast<int>(resolution_options.size());
const int visible_resolution_option_count = static_cast<int>(resolution_options.size()) +
static_cast<int>(resolution_extra_options.size());
// If the current scale is greater than the max scale in the ini, add sufficient options so that
// when the settings are saved we don't lose the user-modified value from the ini.