mirror of https://github.com/OpenTTD/OpenTTD
Fix: If screen size changes, windows are relocated and dropdown may not fit the screen.
parent
628af2fabc
commit
9ce92521c1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue