From 320894971fec20ee84d6bd01a5af9bb3cae3ca0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Tue, 28 Feb 2023 06:20:31 +0200 Subject: [PATCH 1/2] Fix window scrollbar not able to navigate to the end of large lists --- src/openrct2/interface/Window.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/openrct2/interface/Window.h b/src/openrct2/interface/Window.h index fb2b66a401..58b776bf41 100644 --- a/src/openrct2/interface/Window.h +++ b/src/openrct2/interface/Window.h @@ -178,18 +178,18 @@ struct Viewport */ struct ScrollBar { - uint16_t flags{}; // 0x00 - uint16_t h_left{}; // 0x02 - uint16_t h_right{}; // 0x04 - uint16_t h_thumb_left{}; // 0x06 - uint16_t h_thumb_right{}; // 0x08 - uint16_t v_top{}; // 0x0A - uint16_t v_bottom{}; // 0x0C - uint16_t v_thumb_top{}; // 0x0E - uint16_t v_thumb_bottom{}; // 0x10 + uint16_t flags{}; + int32_t h_left{}; + int32_t h_right{}; + int32_t h_thumb_left{}; + int32_t h_thumb_right{}; + int32_t v_top{}; + int32_t v_bottom{}; + int32_t v_thumb_top{}; + int32_t v_thumb_bottom{}; }; -constexpr auto WINDOW_SCROLL_UNDEFINED = std::numeric_limits::max(); +constexpr auto WINDOW_SCROLL_UNDEFINED = std::numeric_limits::max(); struct Focus { From c0905857b762bed93ec82b5087d168049d4f0387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Tue, 28 Feb 2023 15:59:46 +0200 Subject: [PATCH 2/2] Update changelog.txt --- distribution/changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index f86c0d8026..6923f5d047 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -30,6 +30,7 @@ - Change: [#19091] [Plugin] Add game action information to callback arguments of custom actions. - Change: [#19233] Reduce lift speed minimum and maximum values for “Classic Wooden Coaster”. - Fix: [#474] Mini golf window shows more players than there actually are (original bug). +- Fix: [#592] Window scrollbar not able to navigate to the end of large lists. - Fix: [#7210] Land tile smoothing occurs with edge tiles (original bug). - Fix: [#17996] Finances window not cleared when starting some .park scenarios. - Fix: [#18260] Crash opening parks that have multiple tiles referencing the same banner entry.