From a8cfec296b543e31bf596b61c86473d094afc5fc Mon Sep 17 00:00:00 2001 From: victor Date: Mon, 15 Aug 2005 10:09:51 +0000 Subject: screen-resize awareness between screen_backup() and screen_restore(). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3038 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 4 ++-- include/pttstruct.h | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/proto.h b/include/proto.h index a39a65c7..981a7ba4 100644 --- a/include/proto.h +++ b/include/proto.h @@ -554,9 +554,9 @@ 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, void *buf); +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 void *buf); +void screen_restore(int len, screenline_t *bp, const screen_backup_t *buf); /* stuff */ #define isprint2(ch) ((ch & 0x80) || isprint(ch)) diff --git a/include/pttstruct.h b/include/pttstruct.h index 1167fb33..9866b679 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -425,6 +425,11 @@ typedef struct water_t { userinfo_t *uin; // Ptt:這可以取代alive } water_t; +typedef struct { + int row, col; + void *raw_memory; +} screen_backup_t; + typedef struct { fileheader_t *header; char mtitle[STRLEN]; -- cgit v1.2.3