diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-15 18:09:51 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-15 18:09:51 +0800 |
commit | a8cfec296b543e31bf596b61c86473d094afc5fc (patch) | |
tree | 8766f9f2d9ac385652ae4a07d217ae906a6aa32d /include | |
parent | 7cf467de869336579256b535fa605b0aa53b991c (diff) | |
download | pttbbs-a8cfec296b543e31bf596b61c86473d094afc5fc.tar pttbbs-a8cfec296b543e31bf596b61c86473d094afc5fc.tar.gz pttbbs-a8cfec296b543e31bf596b61c86473d094afc5fc.tar.bz2 pttbbs-a8cfec296b543e31bf596b61c86473d094afc5fc.tar.lz pttbbs-a8cfec296b543e31bf596b61c86473d094afc5fc.tar.xz pttbbs-a8cfec296b543e31bf596b61c86473d094afc5fc.tar.zst pttbbs-a8cfec296b543e31bf596b61c86473d094afc5fc.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/proto.h | 4 | ||||
-rw-r--r-- | include/pttstruct.h | 5 |
2 files changed, 7 insertions, 2 deletions
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 @@ -426,6 +426,11 @@ typedef struct water_t { } water_t; typedef struct { + int row, col; + void *raw_memory; +} screen_backup_t; + +typedef struct { fileheader_t *header; char mtitle[STRLEN]; char *path; |