1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 17:42:29 +01:00

Fix #17187: Text input window does not resize correctly

window_set_resize() already invalidates, so no need to call it twice.

Co-authored-by: guljam <guljam@users.noreply.github.com>
This commit is contained in:
Michael Steenbeek
2022-06-06 00:11:29 +02:00
committed by GitHub
parent 60659f4a27
commit 3243183680
2 changed files with 2 additions and 2 deletions

View File

@@ -26,6 +26,7 @@
- Fix: [#17099] Object selection thumbnail box is one pixel too tall. - Fix: [#17099] Object selection thumbnail box is one pixel too tall.
- Fix: [#17104] Changing map size does not invalidate park size. - Fix: [#17104] Changing map size does not invalidate park size.
- Fix: [#17157] Crash when browsing “Up” to folder with CJK characters in its name. - Fix: [#17157] Crash when browsing “Up” to folder with CJK characters in its name.
- Fix: [#17187] Text input window does not resize correctly.
- Fix: [#17197] Segfault when extracting files from the GOG installer. - Fix: [#17197] Segfault when extracting files from the GOG installer.
- Fix: [#17205] Map generator sometimes crashes when not all standard terrain objects are available. - Fix: [#17205] Map generator sometimes crashes when not all standard terrain objects are available.
- Fix: [#17221] Object ghosts and tooltips follow invisible cursor when moving the viewport by right-click dragging. - Fix: [#17221] Object ghosts and tooltips follow invisible cursor when moving the viewport by right-click dragging.

View File

@@ -170,8 +170,7 @@ public:
int32_t newHeight = CalculateWindowHeight(_buffer.data()); int32_t newHeight = CalculateWindowHeight(_buffer.data());
if (newHeight != height) if (newHeight != height)
{ {
Invalidate(); window_set_resize(this, WW, newHeight, WW, newHeight);
window_set_resize(this, WW, height, WW, height);
} }
widgets[WIDX_OKAY].top = newHeight - 22; widgets[WIDX_OKAY].top = newHeight - 22;