gui2/preferences_dialog: Fix breakage of display ratios listing
Regression from 0c2134a645
/ 1.15.10.
This commit is contained in:
parent
2fac56c21f
commit
605fe2eb6b
2 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue