From 742afceadcb5f2f6b692d377f9bddc6ffd7a2f41 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Tue, 24 Feb 2004 15:46:01 +0000 Subject: [PATCH] Don't fail if client-supplied window size seems incorrect. Add forgotten change for 1.4.2 in Changelog. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@259 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- Changelog | 2 ++ dgamelaunch.c | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Changelog b/Changelog index 4cf5e32..962abc7 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,6 @@ 1.4.3 (???) * Make ttyplay use the 'strip' value it remembered from last view. + * Don't fail if client-supplied window size seems incorrect. 1.4.2 (2004/02/22) * Add a compile-time option to define a static location to look @@ -10,6 +11,7 @@ * Don't write rcfiles if they already exist. (i.e., lost account holders recreating their accounts. * Allow administrator to hardcode a dgamelaunch.conf path. + * Ignore client-supplied window size again. * Include dgl-wall, which notifies all logged in users with a mail message. * Split common functions into dgl-common.c. diff --git a/dgamelaunch.c b/dgamelaunch.c index b98374d..d09e327 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -1411,14 +1411,6 @@ main (int argc, char** argv) signal (SIGHUP, catch_sighup); (void) tcgetattr (0, &tt); - if (ioctl (0, TIOCGWINSZ, (char *) &win) == 0) - { - if (win.ws_row < 24 || win.ws_col < 80) - { - fprintf(stderr, "ERROR: dgamelaunch needs at least 80x24 screen.\n"); - graceful_exit(1); - } - } win.ws_row = 24; win.ws_col = 80; win.ws_xpixel = win.ws_col * 8;