summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-06-30 14:36:07 +0000
committerfrosch <frosch@openttd.org>2013-06-30 14:36:07 +0000
commit8116aeff218fe55c98c0dcd2a62390fe7e7d9c6e (patch)
tree945bd66db76ae363338867f766a1929c007504c1 /src
parent634607573f24e8b7b20bb54ed7cee28437fe8386 (diff)
downloadopenttd-8116aeff218fe55c98c0dcd2a62390fe7e7d9c6e.tar.xz
(svn r25536) -Cleanup: No need to set scrollbar capacity anywhere but in OnResize.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_gui.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 694510b1a..837b37de8 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -1170,10 +1170,8 @@ struct NewGRFWindow : public Window, NewGRFScanCallback {
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;
}