* slint.c (slang_init): Limit screen size to 255x255 because of

S-Lang limitations.
Reported by Tero Peippola <top@ees2.oulu.fi>
This commit is contained in:
Pavel Roskin 2003-01-23 14:19:55 +00:00
parent 0105a5a3d2
commit 90243a202f
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2003-01-23 Pavel Roskin <proski@gnu.org>
* slint.c (slang_init): Limit screen size to 255x255 because of
S-Lang limitations.
Reported by Tero Peippola <top@ees2.oulu.fi>
2003-01-22 Adam Byrtek <alpha@debian.org>
* cmd.c (view_other_cmd): Update path in the xterm title after

View File

@ -182,7 +182,7 @@ 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 > 1024) || (LINES > 1024)) {
if ((COLS < 10) || (LINES < 5) || (COLS > 255) || (LINES > 255)) {
fprintf (stderr,
_("Screen size %dx%d is not supported.\n"
"Check the TERM environment variable.\n"),