Changeset - r20512:95f0235b398b
[Not reviewed]
master
0 1 0
frosch - 11 years ago 2013-06-30 14:36:07
frosch@openttd.org
(svn r25536) -Cleanup: No need to set scrollbar capacity anywhere but in OnResize.
1 file changed with 0 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/newgrf_gui.cpp
Show inline comments
 
@@ -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;
 
			}
0 comments (0 inline, 0 general)