OIIO/none: pass through blitterargs

pull/1414/head
nick black 3 years ago
parent fd0bb6f843
commit df73a7fedb
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -37,11 +37,11 @@ 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, unsigned blendcolors) {
int leny, int lenx, const blitterargs* bargs) {
(void)rows;
(void)cols;
if(rgba_blit_dispatch(n, bset, placey, placex, ncv->rowstride, ncv->data,
begy, begx, leny, lenx, blendcolors) >= 0){
begy, begx, leny, lenx, bargs) >= 0){
return 0;
}
return -1;

@ -7,9 +7,9 @@
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, unsigned blendcolors){
int leny, int lenx, const blitterargs* bargs){
if(rgba_blit_dispatch(nc, bset, placey, placex, linesize, data, begy, begx,
leny, lenx, blendcolors) < 0){
leny, lenx, bargs) < 0){
return -1;
}
return 0;

Loading…
Cancel
Save