Fix: If screen size changes, windows are relocated and dropdown may not fit the screen.

This commit is contained in:
J0an Josep 2019-01-14 21:21:35 +01:00 committed by PeterN
parent 628af2fabc
commit 9ce92521c1
1 changed files with 2 additions and 1 deletions

View File

@ -3516,8 +3516,9 @@ void ChangeVehicleViewports(VehicleID from_index, VehicleID to_index)
*/
void RelocateAllWindows(int neww, int newh)
{
Window *w;
DeleteWindowById(WC_DROPDOWN_MENU, 0);
Window *w;
FOR_ALL_WINDOWS_FROM_BACK(w) {
int left, top;
/* XXX - this probably needs something more sane. For example specifying