diff options
author | rubidium <rubidium@openttd.org> | 2009-11-16 20:34:57 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-16 20:34:57 +0000 |
commit | 626de6b128f3580c9559b2d09b15bb4ed314a20a (patch) | |
tree | 93239d913d9ad578483f4e7cbd42e76427bcf7a5 /src/station_gui.cpp | |
parent | cb3c4f2ebe01b91562ecf21b56742e31b4086d91 (diff) | |
download | openttd-626de6b128f3580c9559b2d09b15bb4ed314a20a.tar.xz |
(svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index f9b304593..d3974523e 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -266,7 +266,6 @@ public: this->InitNested(desc, window_number); this->owner = (Owner)this->window_number; - this->vscroll.SetCapacity((this->GetWidget<NWidgetBase>(SLW_LIST)->current_y - WD_FRAMERECT_TOP - WD_FRAMERECT_BOTTOM) / FONT_HEIGHT_NORMAL); for (uint i = 0; i < NUM_CARGO; i++) { const CargoSpec *cs = CargoSpec::Get(i); @@ -792,8 +791,6 @@ struct StationViewWindow : public Window { Owner owner = Station::Get(window_number)->owner; if (owner != OWNER_NONE) this->owner = owner; - - this->vscroll.SetCapacity((this->GetWidget<NWidgetBase>(SVW_WAITING)->current_y - WD_FRAMERECT_TOP - WD_FRAMERECT_BOTTOM) / this->resize.step_height); } ~StationViewWindow() @@ -1280,8 +1277,6 @@ struct SelectStationWindow : Window { this->CreateNestedTree(desc); this->GetWidget<NWidgetCore>(JSW_WIDGET_CAPTION)->widget_data = T::EXPECTED_FACIL == FACIL_WAYPOINT ? STR_JOIN_WAYPOINT_CAPTION : STR_JOIN_STATION_CAPTION; this->FinishInitNested(desc, 0); - - this->vscroll.SetCapacity((this->GetWidget<NWidgetBase>(JSW_PANEL)->current_y - WD_FRAMERECT_TOP - WD_FRAMERECT_BOTTOM) / this->resize.step_height); this->OnInvalidateData(0); } |