version 1.216, 2023/08/08 07:41:04 |
version 1.217, 2023/08/08 08:08:47 |
|
|
name = menu->items[i].name; |
name = menu->items[i].name; |
if (name == NULL) { |
if (name == NULL) { |
screen_write_cursormove(ctx, cx, cy + 1 + i, 0); |
screen_write_cursormove(ctx, cx, cy + 1 + i, 0); |
screen_write_hline(ctx, width + 4, 1, 1, lines, gc); |
screen_write_hline(ctx, width + 4, 1, 1, lines, |
|
border_gc); |
continue; |
continue; |
} |
} |
|
|
if (choice >= 0 && i == (u_int)choice && *name != '-') |
if (choice >= 0 && i == (u_int)choice && *name != '-') |
gc = choice_gc; |
gc = choice_gc; |
|
|
screen_write_cursormove(ctx, cx + 2, cy + 1 + i, 0); |
screen_write_cursormove(ctx, cx + 1, cy + 1 + i, 0); |
for (j = 0; j < width; j++) |
for (j = 0; j < width + 2; j++) |
screen_write_putc(ctx, gc, ' '); |
screen_write_putc(ctx, gc, ' '); |
|
|
screen_write_cursormove(ctx, cx + 2, cy + 1 + i, 0); |
screen_write_cursormove(ctx, cx + 2, cy + 1 + i, 0); |