From 3d780e14a3a01fb94e12f0c848f51b5e8b06ef58 Mon Sep 17 00:00:00 2001 From: nick black Date: Fri, 13 Aug 2021 16:56:12 -0400 Subject: [PATCH] windows: use default geometry if we can't look it up #2020 --- src/lib/notcurses.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/notcurses.c b/src/lib/notcurses.c index eacc4d9bb..93eace383 100644 --- a/src/lib/notcurses.c +++ b/src/lib/notcurses.c @@ -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;