mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
view: move legend to top of display
This commit is contained in:
parent
2c4eead0c2
commit
57f3e36e96
@ -25,7 +25,7 @@ view_video_demo(struct notcurses* nc){
|
|||||||
|
|
||||||
static struct ncplane*
|
static struct ncplane*
|
||||||
legend(struct notcurses* nc, int dimy, int dimx){
|
legend(struct notcurses* nc, int dimy, int dimx){
|
||||||
struct ncplane* n = ncplane_new(nc, 4, 25, dimy * 7 / 8 - 1, (dimx - 25) / 2, NULL);
|
struct ncplane* n = ncplane_new(nc, 4, 25, dimy / 8 - 1, (dimx - 25) / 2, NULL);
|
||||||
ncplane_set_bg_alpha(n, CELL_ALPHA_TRANSPARENT);
|
ncplane_set_bg_alpha(n, CELL_ALPHA_TRANSPARENT);
|
||||||
uint64_t channels = 0;
|
uint64_t channels = 0;
|
||||||
channels_set_bg_alpha(&channels, CELL_ALPHA_TRANSPARENT);
|
channels_set_bg_alpha(&channels, CELL_ALPHA_TRANSPARENT);
|
||||||
|
Loading…
Reference in New Issue
Block a user