1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-24 15:09:10 +00:00

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

View File

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