diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-10-26 16:01:11 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-10-26 16:01:11 +0100 |
commit | c77924bb56800c671d96aa64b887d1ddf033ad94 (patch) | |
tree | b62642fb383466eef9e2dadd53bda5490348304b /screen-write.c | |
parent | 6f46f71d58d508703c29ddc50c04bb4b56603e20 (diff) | |
parent | 9695114230613f57c11936ae0e1fe2cd6ba0a7b4 (diff) | |
download | rtmux-c77924bb56800c671d96aa64b887d1ddf033ad94.tar.gz rtmux-c77924bb56800c671d96aa64b887d1ddf033ad94.tar.bz2 rtmux-c77924bb56800c671d96aa64b887d1ddf033ad94.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/screen-write.c b/screen-write.c index cead12d4..0d70f668 100644 --- a/screen-write.c +++ b/screen-write.c @@ -665,10 +665,12 @@ screen_write_menu(struct screen_write_ctx *ctx, struct menu *menu, if (*name == '-') { name++; default_gc.attr |= GRID_ATTR_DIM; - format_draw(ctx, gc, menu->width, name, NULL); + format_draw(ctx, gc, menu->width, name, NULL, + 0); default_gc.attr &= ~GRID_ATTR_DIM; } else - format_draw(ctx, gc, menu->width, name, NULL); + format_draw(ctx, gc, menu->width, name, NULL, + gc == choice_gc); gc = &default_gc; } } @@ -764,7 +766,7 @@ screen_write_box(struct screen_write_ctx *ctx, u_int nx, u_int ny, if (title != NULL) { gc.attr &= ~GRID_ATTR_CHARSET; screen_write_cursormove(ctx, cx + 2, cy, 0); - format_draw(ctx, &gc, nx - 4, title, NULL); + format_draw(ctx, &gc, nx - 4, title, NULL, 0); } screen_write_set_cursor(ctx, cx, cy); |