From ab0bb7e2279602bb35ec8b7f3db9b8398d3ffdf1 Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 21 Dec 2007 20:01:36 +0000 Subject: - term: don't do too much thing in resize - talk: change variable order to git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3725 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/talk.c | 2 +- mbbsd/term.c | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/mbbsd/talk.c b/mbbsd/talk.c index c19768b0..e031160e 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -22,8 +22,8 @@ static char * const withme_str[] = { #define TALK_MAXCOL (78) #define TALK_BUFLEN (TALK_MAXCOL+2) typedef struct twpic { - unsigned char data[TALK_BUFLEN]; // bound to specific size unsigned short len; + unsigned char data[TALK_BUFLEN]; // bound to specific size } twpic_t; typedef struct talkwin_t { diff --git a/mbbsd/term.c b/mbbsd/term.c index c1f5efd8..59f6e6b3 100644 --- a/mbbsd/term.c +++ b/mbbsd/term.c @@ -41,7 +41,6 @@ sig_term_resize(int sig) void term_resize(int w, int h) { char changed = 0; - screen_backup_t scr; Signal(SIGWINCH, SIG_IGN); /* Don't bother me! */ @@ -52,9 +51,6 @@ void term_resize(int w, int h) if (w != t_columns || h != t_lines) { - scr_dump(&scr); - changed = 1; - // invoke terminal system resize resizeterm(h, w); @@ -66,12 +62,6 @@ void term_resize(int w, int h) p_lines = t_lines - 4; Signal(SIGWINCH, sig_term_resize); - - if (changed) - { - scr_restore(&scr); - redrawwin(); - } } int -- cgit v1.2.3