From 3a5a8d4f781d14260a32b8930265fdbd7d203b86 Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 15 Aug 2022 19:50:01 -0400 Subject: [PATCH 1/3] Fix #17754: Scenery Group thumbnails missing in Invention List window --- src/openrct2-ui/windows/EditorInventionsList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/EditorInventionsList.cpp b/src/openrct2-ui/windows/EditorInventionsList.cpp index 4b4429dcfe..de479ff7b0 100644 --- a/src/openrct2-ui/windows/EditorInventionsList.cpp +++ b/src/openrct2-ui/windows/EditorInventionsList.cpp @@ -414,7 +414,7 @@ public: const auto clipHeight = bkWidget.height() - 1; if (clip_drawpixelinfo(&clipDPI, &dpi, screenPos, clipWidth, clipHeight)) { - object->DrawPreview(&clipDPI, clipWidth, height); + object->DrawPreview(&clipDPI, clipWidth, clipHeight); } } From 7f33e4886d711dcb4f99d66ec5cc61328813a725 Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 15 Aug 2022 19:52:20 -0400 Subject: [PATCH 2/3] Fix #17544: Placement rule in Invention List window does not move --- src/openrct2-ui/windows/EditorInventionsList.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/openrct2-ui/windows/EditorInventionsList.cpp b/src/openrct2-ui/windows/EditorInventionsList.cpp index de479ff7b0..1be94fea55 100644 --- a/src/openrct2-ui/windows/EditorInventionsList.cpp +++ b/src/openrct2-ui/windows/EditorInventionsList.cpp @@ -509,6 +509,12 @@ public: return item == _selectedResearchItem; } + // hack to fix #17544: OnScrollMouseOver never gets called while dragging + void SetSelectedResearchItem(ResearchItem* item) + { + _selectedResearchItem = item; + } + void MoveResearchItem(const ResearchItem& item, ResearchItem* beforeItem, bool isInvented) { _selectedResearchItem = nullptr; @@ -597,6 +603,7 @@ public: auto* research = res.has_value() ? res->research : nullptr; if (!inventionListWindow->IsResearchItemSelected(research)) { + inventionListWindow->SetSelectedResearchItem(research); inventionListWindow->Invalidate(); } } From b359aff5961c95d74014d44eb9abc4a5dc0ec81b Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 15 Aug 2022 21:46:06 -0400 Subject: [PATCH 3/3] Add changelog entry for #17836 --- distribution/changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 18a678cd72..13d6bbb85c 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -27,6 +27,7 @@ - Fix: [#17535] Multiplayer desync when placing rides with scenery. - Fix: [#17541] Station style not correctly saved to TD6. - Fix: [#17542] Stalls will autorotate towards paths outside the park. +- Fix: [#17544, #17754] Visual glitches in Invention List window. - Fix: [#17553] Crash when moving invention list items to empty list. - Fix: [#17571] All researched tracked rides show up as new vehicles in .park scenarios. - Fix: [#17600] Notifications are not properly cleared when loading a park.