mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
(tty_init): clarify screen size limitation.
S_Lang: pre2.3.3-8 (55f58798c267d76a1b93d0d916027b71a10ac1ee): removed static buffers dependent upon SLTT_MAX_SCREEN_ROWS/COLS in favor of dynamically allocated arrays. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
3b39cee81f
commit
f22353ed3d
@ -282,10 +282,15 @@ tty_init (gboolean mouse_enable, gboolean is_xterm)
|
||||
* string such as "linux" or "xterm" S-Lang will go on, but the
|
||||
* terminal size and several other variables won't be initialized
|
||||
* (as of S-Lang 1.4.4). Detect it and abort. Also detect extremely
|
||||
* small, large and negative screen dimensions.
|
||||
* small screen dimensions.
|
||||
*/
|
||||
if ((COLS < 10) || (LINES < 5)
|
||||
|| (COLS > SLTT_MAX_SCREEN_COLS) || (LINES > SLTT_MAX_SCREEN_ROWS))
|
||||
#if SLANG_VERSION < 20303
|
||||
/* Beginning from pre2.3.3-8 (55f58798c267d76a1b93d0d916027b71a10ac1ee),
|
||||
these limitations were eliminated. */
|
||||
|| (COLS > SLTT_MAX_SCREEN_COLS) || (LINES > SLTT_MAX_SCREEN_ROWS)
|
||||
#endif
|
||||
)
|
||||
{
|
||||
fprintf (stderr,
|
||||
_("Screen size %dx%d is not supported.\n"
|
||||
|
Loading…
Reference in New Issue
Block a user