From a5fefdbd7105ecd5dc09693f51c97e11b26554b5 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Sun, 7 Nov 2004 12:48:48 +0000 Subject: [PATCH] * slint.c (slang_init): Allow upto 512 lines and cols if the SLang library can handle it. --- src/ChangeLog | 5 +++++ src/slint.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 54ad5ccb1..ca3b08cfb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2004-11-07 Leonard den Ottolander + + * slint.c (slang_init): Allow upto 512 lines and cols if the + SLang library can handle it. + 2004-11-07 Roland Illig * key.c (use_8th_bit_as_meta): Use 8bit input as default. diff --git a/src/slint.c b/src/slint.c index 89dc1a2b7..5a7564e58 100644 --- a/src/slint.c +++ b/src/slint.c @@ -183,7 +183,10 @@ slang_init (void) * (as of S-Lang 1.4.4). Detect it and abort. Also detect extremely * small, large and negative screen dimensions. */ - if ((COLS < 10) || (LINES < 5) || (COLS > 255) || (LINES > 255)) { + if ((COLS < 10) || (LINES < 5) || + (SLang_Version < 10407 && (COLS > 255 || LINES > 255)) || + (SLang_Version >= 10407 && (COLS > 512 || LINES > 512))) { + fprintf (stderr, _("Screen size %dx%d is not supported.\n" "Check the TERM environment variable.\n"),