diff --git a/changelog.md b/changelog.md index c73a6528a358..a310029f3c3e 100644 --- a/changelog.md +++ b/changelog.md @@ -57,6 +57,7 @@ * Set the correct default text color for in-game UI elements instead of #ffffff white for consistency with other UI elements. * Increased font sizes in Help and some legacy UI elements. * Minor clean-up of game menus display. + * Fixed missing display resolution ratios in Preferences -> Display (regression introduced in 1.15.10). ### WML Engine * Standard Location Filters now support gives_income=yes|no to make it simpler to match villages regardless of owner * Fixed ThemeWML `[label] font_rgb=` generating text elements with broken UTF-8 sequences. diff --git a/src/gui/dialogs/preferences_dialog.cpp b/src/gui/dialogs/preferences_dialog.cpp index dc86a78266ce..dc106fccb6b2 100644 --- a/src/gui/dialogs/preferences_dialog.cpp +++ b/src/gui/dialogs/preferences_dialog.cpp @@ -135,7 +135,7 @@ void preferences_dialog::set_resolution_list(menu_button& res_list) config option; option["label"] = formatter() << res.x << font::unicode_multiplication_sign << res.y; - const int div = std::gcd(12, 4); + const int div = std::gcd(res.x, res.y); const int x_ratio = res.x / div; const int y_ratio = res.y / div;