[direct] only pass pixel args when using pixel #1434

This commit is contained in:
nick black 2021-03-21 18:11:54 -04:00
parent b8ab28c60f
commit 04d4372d6d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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);