[ncvisual_geom] always set up extrinsics

pull/2320/head
nick black 3 years ago committed by nick black
parent b19847a06a
commit 7f36bdaba0

@ -300,9 +300,7 @@ int ncvisual_geom_inner(const tinfo* ti, const ncvisual* n,
geom->pixx = n->pixx;
return 0;
}
// when n is NULL, we only report properties unrelated to the ncvisual,
// i.e. the cell-pixel geometry, max bitmap geometry, blitter, and scaling.
if(n == NULL){
// determine our blitter
const struct blitset* bset = rgba_blitter(ti, vopts);
if(!bset){
logerror("Couldn't get a blitter for %d\n", vopts ? vopts->blitter : NCBLIT_DEFAULT);
@ -319,6 +317,9 @@ int ncvisual_geom_inner(const tinfo* ti, const ncvisual* n,
geom->scaley = bset->height;
geom->scalex = bset->width;
}
// when n is NULL, we only report properties unrelated to the ncvisual,
// i.e. the cell-pixel geometry, max bitmap geometry, blitter, and scaling.
if(n == NULL){
return 0;
}
// FIXME now work with full variant

Loading…
Cancel
Save