mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-20 13:09:15 +00:00
(svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation
This commit is contained in:
@@ -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 */
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user