diff --git a/src/station_gui.cpp b/src/station_gui.cpp --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -450,7 +450,7 @@ public: break; case SLW_LIST: { - bool rtl = _dynlang.text_dir == TD_RTL; + bool rtl = _current_text_dir == TD_RTL; int max = min(this->vscroll->GetPosition() + this->vscroll->GetCapacity(), this->stations.Length()); int y = r.top + WD_FRAMERECT_TOP; for (int i = this->vscroll->GetPosition(); i < max; ++i) { // do until max number of stations of owner @@ -850,7 +850,7 @@ static void DrawCargoIcons(CargoID i, ui SpriteID sprite = CargoSpec::Get(i)->GetCargoIcon(); - int x = _dynlang.text_dir == TD_RTL ? right - num * 10 : left; + int x = _current_text_dir == TD_RTL ? right - num * 10 : left; do { DrawSprite(sprite, PAL_NONE, x, y); x += 10; @@ -1059,7 +1059,7 @@ struct StationViewWindow : public Window y += FONT_HEIGHT_NORMAL; } - bool rtl = _dynlang.text_dir == TD_RTL; + bool rtl = _current_text_dir == TD_RTL; int text_left = rtl ? r.left + this->expand_shrink_width : r.left + WD_FRAMERECT_LEFT; int text_right = rtl ? r.right - WD_FRAMERECT_LEFT : r.right - this->expand_shrink_width; int shrink_left = rtl ? r.left + WD_FRAMERECT_LEFT : r.right - this->expand_shrink_width + WD_FRAMERECT_LEFT;