demo: create all subplanes with NCPLANE_OPTION_FIXED #1958

pull/1965/head
nick black 3 years ago
parent 962a7539b4
commit f9ebbcd80a
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -106,7 +106,7 @@ debug_toggle(struct notcurses* nc){
// line of output doesn't cause trigger a newline. we'll make the last
// column transparent.
.cols = 81,
.flags = NCPLANE_OPTION_HORALIGNED,
.flags = NCPLANE_OPTION_HORALIGNED | NCPLANE_OPTION_FIXED,
.name = "dbg",
};
struct ncplane* n = ncplane_create(notcurses_stdplane(nc), &nopts);
@ -155,7 +155,7 @@ about_toggle(struct notcurses* nc){
.x = NCALIGN_CENTER,
.rows = ABOUT_ROWS,
.cols = ABOUT_COLS,
.flags = NCPLANE_OPTION_HORALIGNED,
.flags = NCPLANE_OPTION_HORALIGNED | NCPLANE_OPTION_FIXED,
};
struct ncplane* n = ncplane_create(notcurses_stdplane(nc), &nopts);
// let the glyphs below show through, but only dimly
@ -422,7 +422,8 @@ struct ncplane* hud_create(struct notcurses* nc){
.userptr = NULL,
.name = "hud",
.resizecb = NULL,
.flags = NCPLANE_OPTION_HORALIGNED,
.flags = NCPLANE_OPTION_HORALIGNED |
NCPLANE_OPTION_FIXED,
};
struct ncplane* n = ncplane_create(notcurses_stdplane(nc), &nopts);
if(n == NULL){
@ -642,7 +643,8 @@ int fpsgraph_init(struct notcurses* nc){
.userptr = NULL,
.name = "fps",
.resizecb = ncplane_resize_realign,
.flags = NCPLANE_OPTION_HORALIGNED | NCPLANE_OPTION_VERALIGNED,
.flags = NCPLANE_OPTION_HORALIGNED | NCPLANE_OPTION_VERALIGNED
| NCPLANE_OPTION_FIXED,
};
struct ncplane* newp = ncplane_create(stdn, &nopts);
if(newp == NULL){

Loading…
Cancel
Save