Changeset - r11458:19dc175db074
[Not reviewed]
master
0 1 0
peter1138 - 15 years ago 2009-03-22 21:56:40
peter1138@openttd.org
(svn r15821) -Fix (r15813): Wrong widget selection prevented drop down label showing in vehicle list windows. Instead of drawing the label ourselves we can set the dropdown's data property to the string to draw.
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/vehicle_gui.cpp
Show inline comments
 
@@ -1041,10 +1041,11 @@ struct VehicleListWindow : public BaseVe
 
			VLW_WIDGET_START_ALL,
 
			WIDGET_LIST_END);
 

	
 
		/* Set text of sort by dropdown widget. */
 
		this->widget[VLW_WIDGET_SORT_BY_PULLDOWN].data = this->vehicle_sorter_names[this->vehicles.SortType()];
 

	
 
		this->DrawWidgets();
 

	
 
		/* draw sorting criteria string */
 
		DrawString(85, this->widget[VLW_WIDGET_SORT_ORDER].right, 15, this->vehicle_sorter_names[this->vehicles.SortType()], TC_BLACK);
 
		/* draw arrow pointing up/down for ascending/descending sorting */
 
		this->DrawSortButtonState(VLW_WIDGET_SORT_ORDER, this->vehicles.IsDescSortOrder() ? SBS_DOWN : SBS_UP);
 

	
0 comments (0 inline, 0 general)