# HG changeset patch # User frosch # Date 2013-06-30 14:36:07 # Node ID 95f0235b398b712ab3ce67eaf79b1657c9131cb2 # Parent 07d7f1c5dd234b85cf786704da11ec69d43cc441 (svn r25536) -Cleanup: No need to set scrollbar capacity anywhere but in OnResize. diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -1170,10 +1170,8 @@ struct NewGRFWindow : public Window, New int i = 0; for (const GRFConfig *c = this->actives; c != NULL; c = c->next, i++) {} - this->vscroll->SetCapacityFromWidget(this, WID_NS_FILE_LIST); this->vscroll->SetCount(i + 1); // Reserve empty space for drag and drop handling. - this->vscroll2->SetCapacityFromWidget(this, WID_NS_AVAIL_LIST); if (this->avail_pos >= 0) this->vscroll2->ScrollTowards(this->avail_pos); break; }