diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-09-11 11:22:50 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-09-11 11:22:50 +0800 |
commit | dbe746260f374a816af234681401641c9de0dc88 (patch) | |
tree | 279a57e3c565f038c6ad478cd094f0a22d3c411b | |
parent | 6470d9b4491886a154f323cd977c21513125a3d4 (diff) | |
download | pttbbs-dbe746260f374a816af234681401641c9de0dc88.tar pttbbs-dbe746260f374a816af234681401641c9de0dc88.tar.gz pttbbs-dbe746260f374a816af234681401641c9de0dc88.tar.bz2 pttbbs-dbe746260f374a816af234681401641c9de0dc88.tar.lz pttbbs-dbe746260f374a816af234681401641c9de0dc88.tar.xz pttbbs-dbe746260f374a816af234681401641c9de0dc88.tar.zst pttbbs-dbe746260f374a816af234681401641c9de0dc88.zip |
fix screen rotate bug when returning from Ctrl-U
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@517 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/io.c | 4 | ||||
-rw-r--r-- | pttbbs/mbbsd/screen.c | 3 | ||||
-rw-r--r-- | pttbbs/mbbsd/var.c | 3 |
3 files changed, 6 insertions, 4 deletions
diff --git a/pttbbs/mbbsd/io.c b/pttbbs/mbbsd/io.c index 721b54a2..82895f28 100644 --- a/pttbbs/mbbsd/io.c +++ b/pttbbs/mbbsd/io.c @@ -1,4 +1,4 @@ -/* $Id: io.c,v 1.22 2002/07/22 19:02:00 in2 Exp $ */ +/* $Id: io.c,v 1.23 2002/09/11 03:22:50 kcwu Exp $ */ #include "bbs.h" #if defined(linux) @@ -161,6 +161,7 @@ igetch() && currutmp->mode != LUSERS && currutmp->mode) { screenline_t *screen0 = calloc(t_lines, sizeof(screenline_t)); + int oldroll = roll; int y, x, my_newfd; getyx(&y, &x); @@ -170,6 +171,7 @@ igetch() t_users(); i_newfd = my_newfd; memcpy(big_picture, screen0, t_lines * sizeof(screenline_t)); + roll = oldroll; move(y, x); free(screen0); redoscr(); diff --git a/pttbbs/mbbsd/screen.c b/pttbbs/mbbsd/screen.c index a7f4526c..0dc36811 100644 --- a/pttbbs/mbbsd/screen.c +++ b/pttbbs/mbbsd/screen.c @@ -1,4 +1,4 @@ -/* $Id: screen.c,v 1.8 2002/07/22 19:02:00 in2 Exp $ */ +/* $Id: screen.c,v 1.9 2002/09/11 03:22:50 kcwu Exp $ */ #include "bbs.h" #ifdef SUPPORT_GB @@ -15,7 +15,6 @@ static int gbinited = 0; static unsigned char cur_ln = 0, cur_col = 0; static unsigned char docls, downfrom = 0; static unsigned char standing = NA; -static char roll = 0; static int scrollcnt, tc_col, tc_line; #define MODIFIED (1) /* if line has been modifed, screen output */ diff --git a/pttbbs/mbbsd/var.c b/pttbbs/mbbsd/var.c index dfabe04a..819be5ba 100644 --- a/pttbbs/mbbsd/var.c +++ b/pttbbs/mbbsd/var.c @@ -1,4 +1,4 @@ -/* $Id: var.c,v 1.12 2002/09/04 12:54:51 kcwu Exp $ */ +/* $Id: var.c,v 1.13 2002/09/11 03:22:50 kcwu Exp $ */ #define INCLUDE_VAR_H #include "bbs.h" @@ -345,6 +345,7 @@ int chc_hiswin, chc_hislose, chc_histie; /* screen.c */ screenline_t *big_picture = NULL; unsigned char scr_lns, scr_cols; +char roll; /* gomo.c */ char ku[BRDSIZ][BRDSIZ]; |