src/town_gui.cpp
changeset 10979 13c4100d8757
parent 10775 7061477bfbcf
child 11125 856f16065654
equal deleted inserted replaced
10970:c0341ebaf88f 10979:13c4100d8757
   543 		this->SortTownList();
   543 		this->SortTownList();
   544 
   544 
   545 		SetVScrollCount(this, this->towns.Length());
   545 		SetVScrollCount(this, this->towns.Length());
   546 
   546 
   547 		this->DrawWidgets();
   547 		this->DrawWidgets();
   548 		this->DrawSortButtonState(this->towns.sort_type == 0 ? TDW_SORTNAME : TDW_SORTPOPULATION, this->towns.IsDescSortOrder() ? SBS_DOWN : SBS_UP);
   548 		this->DrawSortButtonState(this->towns.SortType() == 0 ? TDW_SORTNAME : TDW_SORTPOPULATION, this->towns.IsDescSortOrder() ? SBS_DOWN : SBS_UP);
   549 
   549 
   550 		{
   550 		{
   551 			int n = 0;
   551 			int n = 0;
   552 			uint16 i = this->vscroll.pos;
   552 			uint16 i = this->vscroll.pos;
   553 			int y = 28;
   553 			int y = 28;