From 51011e234d7036b70aa0ed0752756c91f7dc41b1 Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 16 May 2026 21:41:05 -0400 Subject: [PATCH] build fix attempt for msdos cross-compile Recent change was #ifdef PDCURSES, but that is also used on msdos and other platforms --- win/curses/cursinit.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/win/curses/cursinit.c b/win/curses/cursinit.c index c53edd981..efbc93950 100644 --- a/win/curses/cursinit.c +++ b/win/curses/cursinit.c @@ -761,6 +761,7 @@ curses_init_options(void) terminal size programmatically. If the user does not specify a size in the config file, we will set it to a nice big 32x110 to take advantage of some of the nice features of this windowport. */ +#if defined(WIN32) if (iflags.wc2_term_cols == 0) { int display_width = get_approx_display_cols(); @@ -783,6 +784,13 @@ curses_init_options(void) else iflags.wc2_term_rows = 32; } +#else + /* FIXME: should these be higher; is there a way to detect max there? */ + if (iflags.wc2_term_cols == 0) + iflags.wc2_term_cols = 80; + if (iflags.wc2_term_rows == 0) + iflags.wc2_term_rows = 25; +#endif resize_term(iflags.wc2_term_rows, iflags.wc2_term_cols); getmaxyx(base_term, term_rows, term_cols);