src/station_gui.cpp
changeset 7058 8105bb13ce3d
parent 7010 6f0d9f03180d
child 7341 02515d0d4ced
equal deleted inserted replaced
7057:01a2a637716d 7058:8105bb13ce3d
   307 			SortStationsList(sl);
   307 			SortStationsList(sl);
   308 
   308 
   309 			SetVScrollCount(w, sl->list_length);
   309 			SetVScrollCount(w, sl->list_length);
   310 
   310 
   311 			/* draw widgets, with player's name in the caption */
   311 			/* draw widgets, with player's name in the caption */
   312 			const Player* p = GetPlayer(owner);
   312 			SetDParam(0, owner);
   313 			SetDParam(0, p->name_1);
   313 			SetDParam(1, w->vscroll.count);
   314 			SetDParam(1, p->name_2);
       
   315 			SetDParam(2, w->vscroll.count);
       
   316 			DrawWindowWidgets(w);
   314 			DrawWindowWidgets(w);
   317 
   315 
   318 			/* draw sorting criteria string */
   316 			/* draw sorting criteria string */
   319 			DrawString(85, 26, _station_sort_listing[sl->sort_type], 0x10);
   317 			DrawString(85, 26, _station_sort_listing[sl->sort_type], 0x10);
   320 			/* draw arrow pointing up/down for ascending/descending sorting */
   318 			/* draw arrow pointing up/down for ascending/descending sorting */