From 7c7adbd6aefd1498cd84ee947c52269ce099d347 Mon Sep 17 00:00:00 2001 From: scw Date: Wed, 17 Aug 2005 05:28:53 +0000 Subject: screen_backup() & screen_restore() update: * automatic allocate memory, save cursor location and backup * automatic restore screen, cursor location and free memory * works on screen lessening * no more crash on screen enlarged git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3051 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/proto.h') diff --git a/include/proto.h b/include/proto.h index f3579619..87efad8c 100644 --- a/include/proto.h +++ b/include/proto.h @@ -554,9 +554,8 @@ void scroll(void); void getyx(int *y, int *x); void initscr(void); void out_lines(const char *str, int line); -void screen_backup(int len, const screenline_t *bp, screen_backup_t *buf); -size_t screen_backupsize(int len, const screenline_t *bp); -void screen_restore(int len, screenline_t *bp, const screen_backup_t *buf); +void screen_backup(screen_backup_t *buf); +void screen_restore(const screen_backup_t *buf); /* stuff */ #define isprint2(ch) ((ch & 0x80) || isprint(ch)) -- cgit v1.2.3