oiio/null mediacores: propagate CELL_PIXELS

This commit is contained in:
nick black 2021-03-10 05:23:06 -05:00 committed by Nick Black
parent a3c7b5ea69
commit 825b8bd3fb
4 changed files with 10 additions and 10 deletions

View File

@ -37,7 +37,7 @@ int none_resize(ncvisual* nc, int rows, int cols) {
int none_blit(struct ncvisual* ncv, int rows, int cols,
ncplane* n, const struct blitset* bset,
int placey, int placex, int begy, int begx,
int leny, int lenx, bool blendcolors) {
int leny, int lenx, unsigned blendcolors) {
(void)rows;
(void)cols;
if(rgba_blit_dispatch(n, bset, placey, placex, ncv->rowstride, ncv->data,

View File

@ -7,7 +7,7 @@
int oiio_blit_dispatch(struct ncplane* nc, const struct blitset* bset,
int placey, int placex, int linesize,
const void* data, int begy, int begx,
int leny, int lenx, bool blendcolors){
int leny, int lenx, unsigned blendcolors){
if(rgba_blit_dispatch(nc, bset, placey, placex, linesize, data, begy, begx,
leny, lenx, blendcolors) < 0){
return -1;

View File

@ -148,9 +148,9 @@ int oiio_resize(ncvisual* nc, int rows, int cols) {
}
int oiio_blit(struct ncvisual* ncv, int rows, int cols,
ncplane* n, const struct blitset* bset,
int placey, int placex, int begy, int begx,
int leny, int lenx, unsigned blendcolors) {
ncplane* n, const struct blitset* bset,
int placey, int placex, int begy, int begx,
int leny, int lenx, unsigned blendcolors) {
//fprintf(stderr, "%d/%d -> %d/%d on the resize\n", ncv->rows, ncv->cols, rows, cols);
void* data = nullptr;
int stride = 0;
@ -172,7 +172,7 @@ int oiio_blit(struct ncvisual* ncv, int rows, int cols,
stride = ncv->rowstride;
}
return oiio_blit_dispatch(n, bset, placey, placex, stride, data,
begy, begx, leny, lenx, blendcolors);
begy, begx, leny, lenx, blendcolors);
return 0;
}

View File

@ -11,16 +11,16 @@ void oiio_printbanner(const struct notcurses* nc);
int oiio_blit(struct ncvisual* ncv, int rows, int cols,
struct ncplane* n, const struct blitset* bset,
int placey, int placex, int begy, int begx,
int leny, int lenx, bool blendcolors);
int leny, int lenx, unsigned blendcolors);
ncvisual* oiio_from_file(const char* filename);
void oiio_details_destroy(struct ncvisual_details* deets);
int oiio_decode_loop(ncvisual* ncv);
int oiio_resize(ncvisual* nc, int rows, int cols);
struct ncvisual* oiio_create(void);
int oiio_blit_dispatch(struct ncplane* nc, const struct blitset* bset,
int placey, int placex, int linesize,
const void* data, int begy, int begx,
int leny, int lenx, bool blendcolors);
int placey, int placex, int linesize,
const void* data, int begy, int begx,
int leny, int lenx, unsigned blendcolors);
#ifdef __cplusplus
}