notcurses: remove unused truecols field

pull/1190/head
nick black 4 years ago
parent 1239ac7a29
commit 876c5a91a1
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -618,7 +618,7 @@ int fpsgraph_init(struct notcurses* nc){
.y = dimy - PLOTHEIGHT,
.x = NCALIGN_CENTER,
.rows = PLOTHEIGHT,
.cols = dimx,
.cols = dimx > 80 ? 80 : dimx,
.userptr = NULL,
.name = "fps",
.resizecb = ncplane_resize_realign,

@ -331,9 +331,6 @@ typedef struct notcurses {
ncstats stats; // some statistics across the lifetime of the notcurses ctx
ncstats stashstats; // cumulative stats, unaffected by notcurses_stats_reset()
int truecols; // true number of columns in the physical rendering area.
// used only to see if output motion takes us to the next
// line thanks to terminal action alone.
FILE* ttyfp; // FILE* for writing rasterized data
int ttyfd; // file descriptor for controlling tty
ncinputlayer input; // input layer; we're in cbreak mode

@ -1093,7 +1093,6 @@ notcurses* notcurses_init(const notcurses_options* opts, FILE* outfp){
shortname_term ? shortname_term : "?",
longname_term ? longname_term : "?");
}
ret->truecols = dimx;
if(interrogate_terminfo(&ret->tcache)){
goto err;
}

@ -26,7 +26,6 @@ notcurses_resize_internal(ncplane* pp, int* restrict rows, int* restrict cols){
if(update_term_dimensions(n->ttyfd, rows, cols)){
return -1;
}
n->truecols = *cols;
*rows -= n->margin_t + n->margin_b;
if(*rows <= 0){
*rows = 1;

Loading…
Cancel
Save