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 /mbbsd/go.c | |
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 'mbbsd/go.c')
-rw-r--r-- | mbbsd/go.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -864,11 +864,11 @@ gochess(int fd) if (ch == 'v') { - void *screen0; + screen_backup_t old_screen; int y, x; - screen0=malloc(screen_backupsize(t_lines, big_picture)); - screen_backup(t_lines, big_picture, screen0); + old_screen.raw_memory = malloc(screen_backupsize(t_lines, big_picture)); + screen_backup(t_lines, big_picture, &old_screen); add_io(0, 0); getyx(&y, &x); if (ch == 'v') @@ -887,8 +887,8 @@ gochess(int fd) } */ move(y, x); - screen_restore(t_lines, big_picture, screen0); - free(screen0); + screen_restore(t_lines, big_picture, &old_screen); + free(old_screen.raw_memory); add_io(fd, 0); scr_need_redraw = 1; continue; |