diff --git a/src/lib/visual.c b/src/lib/visual.c index 9e8baabd5..4e4a9bcc5 100644 --- a/src/lib/visual.c +++ b/src/lib/visual.c @@ -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