mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Fix: Crash if interface scale or font size changes with chat box present. (#12705)
Caused by the chat box being undrawn with the new dimensions, leading to out-of-bounding memory access.
(cherry picked from commit 7e12b5ff0f
)
This commit is contained in:
parent
06b84f7c00
commit
a6a72c68d1
@ -3622,6 +3622,7 @@ void ReInitAllWindows(bool zoom_changed)
|
||||
ReInitWindow(w, zoom_changed);
|
||||
}
|
||||
|
||||
if (_networking) NetworkUndrawChatMessage();
|
||||
NetworkReInitChatBoxSize();
|
||||
|
||||
/* Make sure essential parts of all windows are visible */
|
||||
|
Loading…
Reference in New Issue
Block a user