mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
[direct] only pass pixel args when using pixel #1434
This commit is contained in:
parent
b8ab28c60f
commit
04d4372d6d
@ -522,14 +522,13 @@ ncdirectv* ncdirect_render_frame(ncdirect* n, const char* file,
|
||||
ncvisual_destroy(ncv);
|
||||
return NULL;
|
||||
}
|
||||
blitterargs bargs = {
|
||||
.pixel = {
|
||||
.celldimx = n->tcache.cellpixx,
|
||||
.celldimy = n->tcache.cellpixy,
|
||||
.colorregs = n->tcache.color_registers,
|
||||
.sprixelid = n->tcache.sprixelnonce++,
|
||||
},
|
||||
};
|
||||
blitterargs bargs = {};
|
||||
if(bset->geom == NCBLIT_PIXEL){
|
||||
bargs.pixel.celldimx = n->tcache.cellpixx;
|
||||
bargs.pixel.celldimy = n->tcache.cellpixy;
|
||||
bargs.pixel.colorregs = n->tcache.color_registers;
|
||||
bargs.pixel.sprixelid = n->tcache.sprixelnonce++;
|
||||
}
|
||||
if(ncvisual_blit(ncv, disprows, dispcols, ncdv, bset,
|
||||
0, 0, leny, lenx, &bargs)){
|
||||
ncvisual_destroy(ncv);
|
||||
|
Loading…
x
Reference in New Issue
Block a user