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.
This commit is contained in:
Peter Nelson 2024-05-22 18:06:34 +01:00 committed by GitHub
parent 42fc32243d
commit 7e12b5ff0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -3330,6 +3330,7 @@ void ReInitAllWindows(bool zoom_changed)
ReInitWindow(w, zoom_changed);
}
if (_networking) NetworkUndrawChatMessage();
NetworkReInitChatBoxSize();
/* Make sure essential parts of all windows are visible */