name standard plane 'std'

This commit is contained in:
nick black 2020-09-28 06:47:44 -04:00 committed by Nick Black
parent a591e11c96
commit c236b65266
3 changed files with 3 additions and 11 deletions

View File

@ -3,8 +3,8 @@ rearrangements of Notcurses.
* 1.7.5 (not yet released)
* `ncreel_destroy()` now returns `void` rather than `int`.
* `nctablet_ncplane()` has been renamed `nctablet_plane()`. The former name
has been retained as a (deprecated) alias, to be removed in the near future.
* `nctablet_ncplane()` has been renamed `nctablet_plane()`.
* The standard plane now has the name `std`.
* 1.7.4 (2020-09-20)
* All `_rgb_clipped()` functions have been renamed `_rgb8_clipped()`, to

View File

@ -2543,15 +2543,6 @@ API void* nctablet_userptr(struct nctablet* t);
// Access the ncplane associated with nctablet 't', if one exists.
API struct ncplane* nctablet_plane(struct nctablet* t);
// deprecated predecessor of nctablet_plane()
static inline struct ncplane*
nctablet_ncplane(struct nctablet* t) __attribute__ ((deprecated));
static inline struct ncplane*
nctablet_ncplane(struct nctablet* t){
return nctablet_plane(t);
}
// The number of columns is one fewer, as the STRLEN expressions must leave
// an extra byte open in case 'µ' (U+00B5, 0xC2 0xB5) shows up. PREFIXCOLUMNS
// is the maximum number of columns used by a mult == 1000 (standard)

View File

@ -380,6 +380,7 @@ create_initial_ncplane(notcurses* nc, int dimy, int dimx){
},
.rows = dimy - (nc->margin_t + nc->margin_b),
.cols = dimx - (nc->margin_l + nc->margin_r),
.name = "std",
};
return nc->stdplane = ncplane_new_internal(nc, NULL, &nopts);
}