mention notcurses_reader.3 in notcurses.3

This commit is contained in:
nick black 2020-06-05 05:56:29 -04:00
parent cd2cc6f340
commit deda0ff681
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
3 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -323,8 +323,8 @@ struct ncvisual_options {
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;

View File

@ -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;
}