From c909e6f54001e88ab3017d9e5ac49d60da6b00cd Mon Sep 17 00:00:00 2001 From: in2 Date: Sun, 19 Sep 2004 14:06:09 +0000 Subject: undo r2169, r2170 in io.c git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2204 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/io.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'mbbsd/io.c') diff --git a/mbbsd/io.c b/mbbsd/io.c index 48ea042f..4b324b8c 100644 --- a/mbbsd/io.c +++ b/mbbsd/io.c @@ -285,23 +285,16 @@ igetch() if (currutmp == NULL) return (ch); -#define WB_OFO_WINDOW_HEIGHT ((WB_OFO_MSG_BOTTOM) - (WB_OFO_USER_TOP) + 1) - if (currutmp->msgs[0].pid && WATERMODE(WATER_OFO) && wmofo == NOTREPLYING) { int y, x, my_newfd; - screenline_t *screen0 = calloc(WB_OFO_WINDOW_HEIGHT + 1, - sizeof(screenline_t)); - memcpy(&screen0[0], &big_picture[0], sizeof(screenline_t)); - memcpy(&screen0[1], &big_picture[WB_OFO_USER_TOP], - WB_OFO_WINDOW_HEIGHT * sizeof(screenline_t)); + screenline_t *screen0 = calloc(t_lines, sizeof(screenline_t)); + memcpy(screen0, big_picture, t_lines * sizeof(screenline_t)); getyx(&y, &x); my_newfd = i_newfd; i_newfd = 0; my_write2(); - memcpy(&big_picture[0], &screen0[0], sizeof(screenline_t)); - memcpy(&big_picture[WB_OFO_USER_TOP], &screen0[1], - WB_OFO_WINDOW_HEIGHT * sizeof(screenline_t)); + memcpy(big_picture, screen0, t_lines * sizeof(screenline_t)); i_newfd = my_newfd; move(y, x); free(screen0); -- cgit v1.2.3