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/network | |
parent | cb3c4f2ebe01b91562ecf21b56742e31b4086d91 (diff) | |
download | openttd-626de6b128f3580c9559b2d09b15bb4ed314a20a.tar.xz |
(svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_content_gui.cpp | 3 | ||||
-rw-r--r-- | src/network/network_gui.cpp | 4 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp index 06ed8a047..ca706330c 100644 --- a/src/network/network_content_gui.cpp +++ b/src/network/network_content_gui.cpp @@ -363,9 +363,6 @@ public: this->FilterContentList(); this->SortContentList(); this->InvalidateData(); - - this->vscroll.SetCapacity(this->GetWidget<NWidgetBase>(NCLWW_MATRIX)->current_y / this->resize.step_height); - this->GetWidget<NWidgetCore>(NCLWW_MATRIX)->widget_data = (this->vscroll.GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START); } /** Free everything we allocated */ diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 4e6bcead1..434fdb6d7 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -462,10 +462,6 @@ public: this->servers.SetSortFuncs(this->sorter_funcs); this->servers.ForceRebuild(); this->SortNetworkGameList(); - - NWidgetCore *nwi = this->GetWidget<NWidgetCore>(NGWW_MATRIX); - this->vscroll.SetCapacity(nwi->current_y / this->resize.step_height); - nwi->widget_data = (this->vscroll.GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START); } ~NetworkGameWindow() |