Lines Matching refs:x_max
78 static VOID cursor_right(UINTN *cursor, UINTN *first, UINTN x_max, UINTN len) {
79 if ((*cursor)+1 < x_max)
85 static BOOLEAN line_edit(CHAR16 *line_in, CHAR16 **line_out, UINTN x_max, UINTN y_pos) {
102 print = AllocatePool((x_max+1) * sizeof(CHAR16));
117 if (i >= x_max-1)
118 i = x_max-1;
120 while (clear > 0 && i < x_max-1) {
156 if (cursor+1 >= x_max) {
157 cursor = x_max-1;
158 first = len - (x_max-1);
167 cursor_right(&cursor, &first, x_max, len);
169 cursor_right(&cursor, &first, x_max, len);
193 cursor_right(&cursor, &first, x_max, len);
289 if (len < x_max) {
313 if (cursor+1 < x_max)
479 UINTN x_max;
498 err = uefi_call_wrapper(ST->ConOut->QueryMode, 4, ST->ConOut, ST->ConOut->Mode->Mode, &x_max, &y_max);
500 x_max = 80;
534 if (line_width > x_max-6)
535 line_width = x_max-6;
538 x_start = (x_max - (line_width)) / 2;
549 lines[i] = AllocatePool(((x_max+1) * sizeof(CHAR16)));
553 for (k = 0; config->entries[i]->title_show[k] != '\0' && j < x_max; j++, k++)
556 for (; j < x_max; j++)
558 lines[i][x_max] = '\0';
562 clearline = AllocatePool((x_max+1) * sizeof(CHAR16));
563 for (i = 0; i < x_max; i++)
619 if (len < x_max)
620 x = (x_max - len) / 2;
625 uefi_call_wrapper(ST->ConOut->OutputString, 2, ST->ConOut, clearline + (x_max - x));
776 if (line_edit(config->entries[idx_highlight]->options, &config->options_edit, x_max-1, y_max-1))