diff options
Diffstat (limited to 'src/airport_gui.cpp')
-rw-r--r-- | src/airport_gui.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp index a5fda1567..00297d62a 100644 --- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -356,7 +356,11 @@ public: this->DisableWidget(BAIRW_LAYOUT_INCREASE); } else { const AirportSpec *as = GetAirportSpecFromClass(_selected_airport_class, _selected_airport_index); - SetTileSelectSize(as->size_x, as->size_y); + int w = as->size_x; + int h = as->size_y; + Direction rotation = as->rotation[_selected_airport_layout]; + if (rotation == DIR_E || rotation == DIR_W) Swap(w, h); + SetTileSelectSize(w, h); this->SetWidgetDisabledState(BAIRW_LAYOUT_DECREASE, _selected_airport_layout == 0); this->SetWidgetDisabledState(BAIRW_LAYOUT_INCREASE, _selected_airport_layout + 1 >= as->num_table); |