From: David Griffith Date: Fri, 26 Jan 2018 13:56:16 +0000 (-0800) Subject: Turn off curses before doing an os_fatal() for screen width > 255. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=3505ee0d02b4853d0d06ad8ddfc4b18871ffea94;p=liskon_frotz.git Turn off curses before doing an os_fatal() for screen width > 255. --- diff --git a/src/curses/ux_init.c b/src/curses/ux_init.c index 50ad88a..6e6057f 100644 --- a/src/curses/ux_init.c +++ b/src/curses/ux_init.c @@ -459,8 +459,11 @@ void os_init_screen (void) h_screen_width = h_screen_cols; h_screen_height = h_screen_rows; - if (h_screen_width < 1) + if (h_screen_width < 1) { + endwin(); + u_setup.curses_active = FALSE; os_fatal("Invalid screen width. Must be between 1 and 255."); + } /* Screen width is an 8-bit value in the Z-machine design itself. */ if (h_screen_width > 255)