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 | f190a09af728c61ad2118cf908c6d831e8a594cf (patch) | |
tree | da785613b2cd19fcfc2653756f0c26e6ee8a8d15 /mbbsd | |
parent | 180efb41330e92d1eb5f44cbb3a7a8e5e48967b3 (diff) | |
download | pttbbs-f190a09af728c61ad2118cf908c6d831e8a594cf.tar pttbbs-f190a09af728c61ad2118cf908c6d831e8a594cf.tar.gz pttbbs-f190a09af728c61ad2118cf908c6d831e8a594cf.tar.bz2 pttbbs-f190a09af728c61ad2118cf908c6d831e8a594cf.tar.lz pttbbs-f190a09af728c61ad2118cf908c6d831e8a594cf.tar.xz pttbbs-f190a09af728c61ad2118cf908c6d831e8a594cf.tar.zst pttbbs-f190a09af728c61ad2118cf908c6d831e8a594cf.zip |
fix screen rotate bug when returning from Ctrl-U
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@517 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/io.c | 4 | ||||
-rw-r--r-- | mbbsd/screen.c | 3 | ||||
-rw-r--r-- | mbbsd/var.c | 3 |
3 files changed, 6 insertions, 4 deletions
@@ -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/mbbsd/screen.c b/mbbsd/screen.c index a7f4526c..0dc36811 100644 --- a/mbbsd/screen.c +++ b/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/mbbsd/var.c b/mbbsd/var.c index dfabe04a..819be5ba 100644 --- a/mbbsd/var.c +++ b/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]; |