equal
deleted
inserted
replaced
151 } |
151 } |
152 |
152 |
153 return (_internal_sort_order & 1) ? maxr2 - maxr1 : maxr1 - maxr2; |
153 return (_internal_sort_order & 1) ? maxr2 - maxr1 : maxr1 - maxr2; |
154 } |
154 } |
155 |
155 |
156 typedef enum StationListFlags { |
156 enum StationListFlags { |
157 SL_ORDER = 0x01, |
157 SL_ORDER = 0x01, |
158 SL_RESORT = 0x02, |
158 SL_RESORT = 0x02, |
159 SL_REBUILD = 0x04, |
159 SL_REBUILD = 0x04, |
160 } StationListFlags; |
160 }; |
161 |
161 |
162 DECLARE_ENUM_AS_BIT_SET(StationListFlags); |
162 DECLARE_ENUM_AS_BIT_SET(StationListFlags); |
163 |
163 |
164 typedef struct plstations_d { |
164 struct plstations_d { |
165 const Station** sort_list; |
165 const Station** sort_list; |
166 uint16 list_length; |
166 uint16 list_length; |
167 byte sort_type; |
167 byte sort_type; |
168 StationListFlags flags; |
168 StationListFlags flags; |
169 uint16 resort_timer; //was byte refresh_counter; |
169 uint16 resort_timer; //was byte refresh_counter; |
170 } plstations_d; |
170 }; |
171 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(plstations_d)); |
171 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(plstations_d)); |
172 |
172 |
173 void RebuildStationLists() |
173 void RebuildStationLists() |
174 { |
174 { |
175 Window* const *wz; |
175 Window* const *wz; |