From d92f8c125dbaed2d73298c1a7cc8a8d17be2220c Mon Sep 17 00:00:00 2001 From: Rik Smeets <30838294+rik-smeets@users.noreply.github.com> Date: Wed, 2 Mar 2022 20:08:00 +0100 Subject: [PATCH] Fix #15909: Prevent text overflow in 'Select ride design' windows For designs with a long description, a line of text in the 'Select ride design' window could overflow onto the next window element. The window height was just one newline too small. Therefore, increased the window size with a single line. --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/TrackList.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 9a79442ea1..17f6b10a37 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -37,6 +37,7 @@ - Fix: [#15413] Modifying park rating with plugins desyncs park rating history from actual park rating. - Fix: [#15571] Non-ASCII characters in scenario description get distorted while saving. - Fix: [#15830] Objects with RCT1 images are very glitchy if OpenRCT2 is not linked to an RCT1 install. +- Fix: [#15909] Text can overflow in ‘Select ride design’ windows. - Fix: [#15947, #15960] Removing a flat ride results in an error message and duplicate structures. - Fix: [#15998] Cannot set map size to the actual maximum. - Fix: [#16007] Scenario Editor “Entry Price” appears to the right of the value field. diff --git a/src/openrct2-ui/windows/TrackList.cpp b/src/openrct2-ui/windows/TrackList.cpp index 646447987c..f110366282 100644 --- a/src/openrct2-ui/windows/TrackList.cpp +++ b/src/openrct2-ui/windows/TrackList.cpp @@ -28,7 +28,7 @@ #include static constexpr const rct_string_id WINDOW_TITLE = STR_SELECT_DESIGN; -static constexpr const int32_t WH = 431; +static constexpr const int32_t WH = 441; static constexpr const int32_t WW = 600; static constexpr const int32_t DEBUG_PATH_HEIGHT = 12; static constexpr const int32_t ROTATE_AND_SCENERY_BUTTON_SIZE = 24;