Lines Matching refs:max_choice
116 int key = 0, button = 0, choice = 0, scroll = 0, max_choice, *status;
137 max_choice = MIN(list_height, item_no);
189 for (i = 0; i < max_choice; i++) {
206 for (i = 0; i < max_choice; i++)
211 if (i < max_choice || key == KEY_UP || key == KEY_DOWN ||
238 if (choice == max_choice - 1) {
244 print_item(list, items[(scroll + max_choice - 1) * 3 + 1],
245 status[scroll + max_choice - 1],
246 max_choice - 1, FALSE);
252 print_item(list, items[(scroll + max_choice - 1) * 3 + 1],
253 status[scroll + max_choice - 1], max_choice - 1, TRUE);
304 for (i = 0; i < max_choice; i++)