Lines Matching defs:idx_highlight

468         UINTN idx_highlight;
510 idx_highlight = config->idx_default;
575 if (i == idx_highlight)
597 uefi_call_wrapper(ST->ConOut->SetCursorPosition, 3, ST->ConOut, 0, y_start + idx_highlight - idx_first);
599 uefi_call_wrapper(ST->ConOut->OutputString, 2, ST->ConOut, lines[idx_highlight]);
600 if ((INTN)idx_highlight == config->idx_default_efivar) {
601 uefi_call_wrapper(ST->ConOut->SetCursorPosition, 3, ST->ConOut, x_start-3, y_start + idx_highlight - idx_first);
661 idx_highlight_prev = idx_highlight;
666 if (idx_highlight > 0)
667 idx_highlight--;
672 if (idx_highlight < config->entry_count-1)
673 idx_highlight++;
678 if (idx_highlight > 0) {
680 idx_highlight = 0;
686 if (idx_highlight < config->entry_count-1) {
688 idx_highlight = config->entry_count-1;
693 if (idx_highlight > visible_max)
694 idx_highlight -= visible_max;
696 idx_highlight = 0;
700 idx_highlight += visible_max;
701 if (idx_highlight > config->entry_count-1)
702 idx_highlight = config->entry_count-1;
722 if (config->idx_default_efivar != (INTN)idx_highlight) {
724 efivar_set(L"LoaderEntryDefault", config->entries[idx_highlight]->file, TRUE);
725 config->idx_default_efivar = idx_highlight;
771 if (config->no_editor || config->entries[idx_highlight]->type == LOADER_UNDEFINED)
776 if (line_edit(config->entries[idx_highlight]->options, &config->options_edit, x_max-1, y_max-1))
800 idx = entry_lookup_key(config, idx_highlight+1, KEYCHAR(key));
803 idx_highlight = idx;
807 if (idx_highlight > idx_last) {
808 idx_last = idx_highlight;
809 idx_first = 1 + idx_highlight - visible_max;
811 } else if (idx_highlight < idx_first) {
812 idx_first = idx_highlight;
813 idx_last = idx_highlight + visible_max-1;
817 if (!refresh && idx_highlight != idx_highlight_prev)
821 *chosen_entry = config->entries[idx_highlight];