equal
deleted
inserted
replaced
1049 DrawWindowWidgets(w); |
1049 DrawWindowWidgets(w); |
1050 } |
1050 } |
1051 /* draw sorting criteria string */ |
1051 /* draw sorting criteria string */ |
1052 DrawString(85, 15, _vehicle_sort_listing[vl->sort_type], 0x10); |
1052 DrawString(85, 15, _vehicle_sort_listing[vl->sort_type], 0x10); |
1053 /* draw arrow pointing up/down for ascending/descending sorting */ |
1053 /* draw arrow pointing up/down for ascending/descending sorting */ |
1054 DoDrawString(vl->flags & VL_DESC ? "\xAA" : "\xA0", 69, 15, 0x10); |
1054 DoDrawString(vl->flags & VL_DESC ? DOWNARROW : UPARROW, 69, 15, 0x10); |
1055 |
1055 |
1056 max = min(w->vscroll.pos + w->vscroll.cap, vl->list_length); |
1056 max = min(w->vscroll.pos + w->vscroll.cap, vl->list_length); |
1057 for (i = w->vscroll.pos; i < max; ++i) { |
1057 for (i = w->vscroll.pos; i < max; ++i) { |
1058 Vehicle *v = GetVehicle(vl->sort_list[i].index); |
1058 Vehicle *v = GetVehicle(vl->sort_list[i].index); |
1059 StringID str; |
1059 StringID str; |