Changeset - r6270:f2bdc90dbe08
[Not reviewed]
master
0 1 0
peter1138 - 17 years ago 2007-03-09 22:55:04
peter1138@openttd.org
(svn r9079) -Codechange: add WWT_LAST widget when dynamically building cargo payment graph
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/graph_gui.cpp
Show inline comments
 
@@ -799,8 +799,9 @@ void ShowCargoPaymentRates()
 
	ResizeWindow(w, 0, num_active * 8);
 

	
 
	/* Add widgets for each cargo type */
 
	w->widget_count = 3 + num_active;
 
	w->widget = ReallocT(w->widget, w->widget_count);
 
	w->widget_count += num_active;
 
	w->widget = ReallocT(w->widget, w->widget_count + 1);
 
	w->widget[w->widget_count].type = WWT_LAST;
 

	
 
	/* Set the properties of each widget */
 
	for (uint i = 0; i != num_active; i++) {
0 comments (0 inline, 0 general)