[cffi] update for ncplane_as_rgba()

This commit is contained in:
nick black 2021-04-10 00:47:03 -04:00
parent 582bdebbc3
commit 1f33ada62e
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
5 changed files with 5 additions and 5 deletions

View File

@ -1030,7 +1030,7 @@ int ncplane_at_yx_cell(struct ncplane* n, int y, int x, nccell* c);
// 'pxdimx' are non-NULL, they will be filled in with the pixel geometry.
uint32_t* ncplane_as_rgba(const struct ncplane* n, ncblitter_e blit,
int begy, int begx, int leny, int lenx,
int *pxdimy, int *pxdimx);
int* pxdimy, int* pxdimx);
// return a nul-terminated, heap copy of the current (UTF-8) contents.
char* ncplane_contents(const struct ncplane* nc, int begy, int begx,

View File

@ -129,7 +129,7 @@ typedef enum {
} ncblitter_e;
const char* notcurses_str_blitter(ncblitter_e blitter);
int notcurses_lex_blitter(const char* op, ncblitter_e* blitter);
uint32_t* ncplane_rgba(const struct ncplane* nc, ncblitter_e blit, int begy, int begx, int leny, int lenx);
uint32_t* ncplane_as_rgba(const struct ncplane* nc, ncblitter_e blit, int begy, int begx, int leny, int lenx, int* pxdimy, int* pxdimx);
char* ncplane_contents(const struct ncplane* nc, int begy, int begx, int leny, int lenx);
void* ncplane_set_userptr(struct ncplane* n, void* opaque);
void* ncplane_userptr(struct ncplane* n);

View File

@ -2465,7 +2465,7 @@ struct ncvisual_options {
// 'pxdimx' are non-NULL, they will be filled in with the pixel geometry.
API ALLOC uint32_t* ncplane_as_rgba(const struct ncplane* n, ncblitter_e blit,
int begy, int begx, int leny, int lenx,
int *pxdimy, int *pxdimx)
int* pxdimy, int* pxdimx)
__attribute__ ((nonnull (1)));
// Deprecated in favor of ncplane_as_rgba. This will be removed in ABI3.

View File

@ -2426,7 +2426,7 @@ int ncdirect_inputready_fd(ncdirect* n){
uint32_t* ncplane_as_rgba(const ncplane* nc, ncblitter_e blit,
int begy, int begx, int leny, int lenx,
int *pxdimy, int *pxdimx){
int* pxdimy, int* pxdimx){
const notcurses* ncur = ncplane_notcurses_const(nc);
if(begy < 0 || begx < 0){
logerror(ncur, "Nil offset (%d,%d)\n", begy, begx);

View File

@ -684,7 +684,7 @@ ncplane* ncvisual_render(notcurses* nc, ncvisual* ncv, const struct ncvisual_opt
}
int placey = vopts ? vopts->y : 0;
int placex = vopts ? vopts->x : 0;
fprintf(stderr, "beg/len: %d %d %d %d place: %d/%d scale: %d/%d\n", begy, leny, begx, lenx, placey, placex, encoding_y_scale(&nc->tcache, bset), encoding_x_scale(&nc->tcache, bset));
//fprintf(stderr, "beg/len: %d %d %d %d place: %d/%d scale: %d/%d\n", begy, leny, begx, lenx, placey, placex, encoding_y_scale(&nc->tcache, bset), encoding_x_scale(&nc->tcache, bset));
ncplane* n = (vopts ? vopts->n : NULL);
//fprintf(stderr, "%p tacache: %p\n", n, n->tacache);
ncscale_e scaling = vopts ? vopts->scaling : NCSCALE_NONE;