NEWS: mention ncplane_set_channels()

This commit is contained in:
nick black 2020-05-08 21:06:00 -04:00 committed by Nick Black
parent a859a3d652
commit 06e4b9f06b
3 changed files with 6 additions and 2 deletions

View File

@ -9,6 +9,10 @@ rearrangements of Notcurses.
* `selector_options` has been renamed to `ncselector_options`, and
`multiselector_options` has been renamed to `ncmultiselector_options`.
This matches the other widget option struct's nomenclature.
* `ncselector_create()` and `ncmultiselector_create()` now take a `struct
notcurses*` instead of a `struct ncplane`, as they create their own planes.
* `ncplane_set_channels()` and `ncplane_set_attr()` have been added to allow
`ncplane` attributes to be set directly and in toto.
* 1.3.4 (2020-05-07)
* `notcurses_lex_margins()` has been added to lex margins expressed in either

View File

@ -5,7 +5,7 @@ using namespace ncpp;
notcurses* Root::get_notcurses () const
{
notcurses *ret = *NotCurses::get_instance ();
notcurses *ret = NotCurses::get_instance ();
if (ret == nullptr)
throw new invalid_state_error (ncpp_invalid_state_message);
return ret;

View File

@ -18,7 +18,7 @@ auto main() -> int {
opts.physcols = dimx / 2;
opts.egc = strdup("");
//ncpp::Reader nr(nc, 0, 0, &opts);
auto nr = ncreader_create(*nc, 2, 2, &opts);
auto nr = ncreader_create(nc, 2, 2, &opts);
if(nr == nullptr){
return EXIT_FAILURE;
}