mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
[ncvgeom] always set pixy/pixx with non-NULL n
This commit is contained in:
parent
95f4ea32aa
commit
5ae6a2152f
@ -186,11 +186,13 @@ int ncvisual_geom_inner(const tinfo* ti, const ncvisual* n,
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
if(n){
|
||||
geom->pixy = n->pixy;
|
||||
geom->pixx = n->pixx;
|
||||
}
|
||||
// when nc is NULL, we only report properties intrinsic to the ncvisual,
|
||||
// i.e. only its original pixel geometry.
|
||||
if(ti == NULL){
|
||||
geom->pixy = n->pixy;
|
||||
geom->pixx = n->pixx;
|
||||
return 0;
|
||||
}
|
||||
// determine our blitter
|
||||
|
Loading…
Reference in New Issue
Block a user