diff --git a/doc/man/man3/notcurses.3.md b/doc/man/man3/notcurses.3.md index 2401ded1b7..fdc683c6f5 100644 --- a/doc/man/man3/notcurses.3.md +++ b/doc/man/man3/notcurses.3.md @@ -101,6 +101,7 @@ A few high-level widgets are included, all built atop ncplanes: * **notcurses_menu(3)** for menu bars at the top or bottom of the screen * **notcurses_multiselector(3)** for selecting one or more items from a set * **notcurses_plot(3)** for drawing histograms and lineplots +* **notcurses_reader(3)** for free-form input data * **notcurses_reel(3)** for hierarchal display of data * **notcurses_selector(3)** for selecting one item from a set diff --git a/python/src/notcurses/build_notcurses.py b/python/src/notcurses/build_notcurses.py index 6612983623..f205ba4d0f 100644 --- a/python/src/notcurses/build_notcurses.py +++ b/python/src/notcurses/build_notcurses.py @@ -323,8 +323,8 @@ ncblitter_e blitter; uint64_t flags; }; -struct ncplane* ncblit_bgrx(const void* data, int linesize, const struct ncvisual_options *vopts); -struct ncplane* ncblit_rgba(const void* data, int linesize, const struct ncvisual_options *vopts); +int ncblit_bgrx(const void* data, int linesize, const struct ncvisual_options *vopts); +int ncblit_rgba(const void* data, int linesize, const struct ncvisual_options *vopts); struct ncselector_item { char* option; char* desc; diff --git a/src/poc/rotator.c b/src/poc/rotator.c index 875e3ee297..efb68dd212 100644 --- a/src/poc/rotator.c +++ b/src/poc/rotator.c @@ -36,7 +36,7 @@ rotate_grad(struct notcurses* nc){ .leny = dimy * 2, .lenx = dimx, }; - if(ncblit_rgba(rgba, dimx * 4, &vopts) == NULL){ + if(ncblit_rgba(rgba, dimx * 4, &vopts) < 0){ free(rgba); return -1; } @@ -171,7 +171,7 @@ rotate(struct notcurses* nc){ .x = XSIZE, .n = n, }; - if(ncblit_rgba(rgba, XSIZE * 4, &vopts) == NULL){ + if(ncblit_rgba(rgba, XSIZE * 4, &vopts) < 0){ free(rgba); return -1; }