mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-06 03:20:26 +00:00
oiio/null mediacores: propagate CELL_PIXELS
This commit is contained in:
parent
a3c7b5ea69
commit
825b8bd3fb
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user