diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-22 04:01:36 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-22 04:01:36 +0800 |
commit | ab0bb7e2279602bb35ec8b7f3db9b8398d3ffdf1 (patch) | |
tree | 4f9cf90ad164c23b63b8581d4052864e876b4e26 | |
parent | 8ce3248f5a4eb11395335f9055a8f0e8afa8385b (diff) | |
download | pttbbs-ab0bb7e2279602bb35ec8b7f3db9b8398d3ffdf1.tar pttbbs-ab0bb7e2279602bb35ec8b7f3db9b8398d3ffdf1.tar.gz pttbbs-ab0bb7e2279602bb35ec8b7f3db9b8398d3ffdf1.tar.bz2 pttbbs-ab0bb7e2279602bb35ec8b7f3db9b8398d3ffdf1.tar.lz pttbbs-ab0bb7e2279602bb35ec8b7f3db9b8398d3ffdf1.tar.xz pttbbs-ab0bb7e2279602bb35ec8b7f3db9b8398d3ffdf1.tar.zst pttbbs-ab0bb7e2279602bb35ec8b7f3db9b8398d3ffdf1.zip |
- 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
-rw-r--r-- | mbbsd/talk.c | 2 | ||||
-rw-r--r-- | mbbsd/term.c | 10 |
2 files changed, 1 insertions, 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 |