summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2023-08-08 08:08:47 +0000
committernicm <nicm>2023-08-08 08:08:47 +0000
commitdee72ed41f54d9ba12b1ce20c18476d9276a876d (patch)
treea0b8e2c6014a32f750727233313bae0d74ac2837 /screen-write.c
parent1071ef8fc5bd5d2776dd6b413ce0535a0f81be65 (diff)
Add options and flags for menu styles similar to those existing for
popups, from Alexis Hildebrandt. GitHub issue 3650.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/screen-write.c b/screen-write.c
index 177395a6..25158ee5 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -713,15 +713,16 @@ screen_write_menu(struct screen_write_ctx *ctx, struct menu *menu, int choice,
name = menu->items[i].name;
if (name == NULL) {
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;
}
if (choice >= 0 && i == (u_int)choice && *name != '-')
gc = choice_gc;
- screen_write_cursormove(ctx, cx + 2, cy + 1 + i, 0);
- for (j = 0; j < width; j++)
+ screen_write_cursormove(ctx, cx + 1, cy + 1 + i, 0);
+ for (j = 0; j < width + 2; j++)
screen_write_putc(ctx, gc, ' ');
screen_write_cursormove(ctx, cx + 2, cy + 1 + i, 0);