diff options
author | J0an Josep <juanjo.ng.83@gmail.com> | 2019-01-14 21:21:35 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-01-20 21:43:00 +0000 |
commit | 9ce92521c1f2c6bec862a4e09926c6cca750d9d2 (patch) | |
tree | fd0da3db420da4bcaab5e2a03eb229ab4fc645b5 /src | |
parent | 628af2fabcc634d6e10c50147eaf8a18e873a8b2 (diff) | |
download | openttd-9ce92521c1f2c6bec862a4e09926c6cca750d9d2.tar.xz |
Fix: If screen size changes, windows are relocated and dropdown may not fit the screen.
Diffstat (limited to 'src')
-rw-r--r-- | src/window.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp index cc40afd34..2d0331033 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -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 |