Skip to content

Commit

Permalink
windows: use default geometry if we can't look it up #2020
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Aug 13, 2021
1 parent 0c0a815 commit 3d780e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/notcurses.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,13 @@ int update_term_dimensions(int* rows, int* cols, tinfo* tcache, int margin_b){
tcache->pixel_draw = NULL; // disable support
}
}
#else
if(rows){
*rows = tcache->default_rows;
}
if(cols){
*cols = tcache->default_cols;
}
#endif
if(tcache->sixel_maxy_pristine){
int sixelrows = *rows - 1;
Expand Down

0 comments on commit 3d780e1

Please sign in to comment.