mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
name standard plane 'std'
This commit is contained in:
parent
a591e11c96
commit
c236b65266
4
NEWS.md
4
NEWS.md
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user