Fix d3c673e: Don't defer OnResize() after ReInit() (#12174)

Some windows resize themselves during painting and issue ReInit(). In this case deferred OnResize() causes a visible glitch as the event is handled on the next redraw.
This commit is contained in:
Peter Nelson
2024-02-25 08:35:57 +00:00
committed by GitHub
parent ddb3914074
commit 8afef45d4e
2 changed files with 10 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ Window *FindWindowById(WindowClass cls, T number)
return FindWindowById(cls, number.base());
}
void ResizeWindow(Window *w, int x, int y, bool clamp_to_screen = true);
void ResizeWindow(Window *w, int x, int y, bool clamp_to_screen = true, bool schedule_resize = true);
int PositionMainToolbar(Window *w);
int PositionStatusbar(Window *w);
int PositionNewsMessage(Window *w);