equal
deleted
inserted
replaced
1028 DrawWindowWidgets(w); |
1028 DrawWindowWidgets(w); |
1029 } |
1029 } |
1030 /* draw sorting criteria string */ |
1030 /* draw sorting criteria string */ |
1031 DrawString(85, 15, _vehicle_sort_listing[vl->sort_type], 0x10); |
1031 DrawString(85, 15, _vehicle_sort_listing[vl->sort_type], 0x10); |
1032 /* draw arrow pointing up/down for ascending/descending sorting */ |
1032 /* draw arrow pointing up/down for ascending/descending sorting */ |
1033 DoDrawString(vl->flags & VL_DESC ? "\xAA" : "\xA0", 69, 15, 0x10); |
1033 DoDrawString(vl->flags & VL_DESC ? DOWNARROW : UPARROW, 69, 15, 0x10); |
1034 |
1034 |
1035 max = min(w->vscroll.pos + w->vscroll.cap, vl->list_length); |
1035 max = min(w->vscroll.pos + w->vscroll.cap, vl->list_length); |
1036 for (i = w->vscroll.pos; i < max; ++i) { |
1036 for (i = w->vscroll.pos; i < max; ++i) { |
1037 Vehicle *v = GetVehicle(vl->sort_list[i].index); |
1037 Vehicle *v = GetVehicle(vl->sort_list[i].index); |
1038 StringID str; |
1038 StringID str; |