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/io.c | |
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/io.c')
-rw-r--r-- | mbbsd/io.c | 4 |
1 files changed, 3 insertions, 1 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(); |