Qt/EnhancementsWidget: Fix size of resolution dropdown.

This commit is contained in:
Admiral H. Curtiss 2023-10-10 15:03:49 +02:00
parent 1b7a590b4b
commit 7b32530de6
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB
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.