1
0
Fork 0

Fix: Sandbox window does not reduce height when interface scale is reduced.

line_height was only ever made larger, and icon.height ignored.
pull/11924/head
Peter Nelson 2024-01-29 21:14:23 +00:00
parent f1842f9144
commit 7c0e5f032b
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ struct CheatWindow : Window {
}
}
this->line_height = std::max<uint>(this->line_height, SETTING_BUTTON_HEIGHT);
this->line_height = std::max<uint>(this->icon.height, SETTING_BUTTON_HEIGHT);
this->line_height = std::max<uint>(this->line_height, GetCharacterHeight(FS_NORMAL)) + WidgetDimensions::scaled.framerect.Vertical();
size->width = width + WidgetDimensions::scaled.hsep_wide * 2 + SETTING_BUTTON_WIDTH;