diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-24 18:38:13 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-24 18:38:13 +0800 |
commit | 60e6c6cd3f3a648a1f76f7c18d922dacabbb3b4c (patch) | |
tree | 86cf8fa7e68b934360a259a7363a22266e15e41d /mbbsd/term.c | |
parent | 3a03c33c7ce6c3f7bea8e9597711108a2ee5d817 (diff) | |
download | pttbbs-60e6c6cd3f3a648a1f76f7c18d922dacabbb3b4c.tar pttbbs-60e6c6cd3f3a648a1f76f7c18d922dacabbb3b4c.tar.gz pttbbs-60e6c6cd3f3a648a1f76f7c18d922dacabbb3b4c.tar.bz2 pttbbs-60e6c6cd3f3a648a1f76f7c18d922dacabbb3b4c.tar.lz pttbbs-60e6c6cd3f3a648a1f76f7c18d922dacabbb3b4c.tar.xz pttbbs-60e6c6cd3f3a648a1f76f7c18d922dacabbb3b4c.tar.zst pttbbs-60e6c6cd3f3a648a1f76f7c18d922dacabbb3b4c.zip |
- redrawin() changed to 'invalid only' and will take change at next refresh
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3734 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/term.c')
-rw-r--r-- | mbbsd/term.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mbbsd/term.c b/mbbsd/term.c index 064d5db3..4868415a 100644 --- a/mbbsd/term.c +++ b/mbbsd/term.c @@ -40,6 +40,7 @@ sig_term_resize(int sig) void term_resize(int w, int h) { + int dorefresh = 0; Signal(SIGWINCH, SIG_IGN); /* Don't bother me! */ @@ -54,12 +55,18 @@ void term_resize(int w, int h) t_lines = h; t_columns = w; + dorefresh = 1; } scr_lns = t_lines; /* XXX: scr_lns 跟 t_lines 有什麼不同, 為何分成兩個 */ b_lines = t_lines - 1; p_lines = t_lines - 4; Signal(SIGWINCH, sig_term_resize); + if (dorefresh) + { + redrawwin(); + refresh(); + } } int |