From 14c64a2aa201c8237638784cff38d5a07631187d Mon Sep 17 00:00:00 2001 From: nick black Date: Fri, 15 Jan 2021 06:06:42 -0500 Subject: [PATCH] uniblock demo: set pbar background to 0 --- src/demo/unicodeblocks.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/demo/unicodeblocks.c b/src/demo/unicodeblocks.c index c6ff36181..664d159e8 100644 --- a/src/demo/unicodeblocks.c +++ b/src/demo/unicodeblocks.c @@ -40,11 +40,14 @@ pbar_make(struct notcurses* nc, int row){ if(pbar == NULL){ return NULL; } + uint64_t channels = 0; + channels_set_bg_rgb(&channels, 0); + ncplane_set_base(pbar, "", 0, channels); int posy, posx, pdimy, pdimx; ncplane_yx(pbar, &posy, &posx); ncplane_dim_yx(pbar, &pdimy, &pdimx); ncplane_cursor_move_yx(std, posy - 1, posx - 1); - uint64_t channels = 0; + channels = 0; channels_set_fg_rgb8(&channels, 0, 0xde, 0xde); if(ncplane_rounded_box(std, 0, channels, posy + pdimy, posx + pdimx, 0)){ ncplane_destroy(pbar);