mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* slint.c (slang_init): Allow upto 512 lines and cols if the
SLang library can handle it.
This commit is contained in:
parent
d5da4d6b94
commit
a5fefdbd71
@ -1,3 +1,8 @@
|
||||
2004-11-07 Leonard den Ottolander <leonard * den ottolander nl>
|
||||
|
||||
* slint.c (slang_init): Allow upto 512 lines and cols if the
|
||||
SLang library can handle it.
|
||||
|
||||
2004-11-07 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* key.c (use_8th_bit_as_meta): Use 8bit input as default.
|
||||
|
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user