From f190a09af728c61ad2118cf908c6d831e8a594cf Mon Sep 17 00:00:00 2001 From: kcwu Date: Wed, 11 Sep 2002 03:22:50 +0000 Subject: 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 --- mbbsd/io.c | 4 +++- mbbsd/screen.c | 3 +-- mbbsd/var.c | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/mbbsd/io.c b/mbbsd/io.c index 721b54a2..82895f28 100644 --- a/mbbsd/io.c +++ b/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/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]; -- cgit v1.2.3