diff options
Diffstat (limited to 'mbbsd/go.c')
-rw-r--r-- | mbbsd/go.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -865,11 +865,11 @@ gochess(int fd) if (ch == 'v') { - //extern screenline *big_picture; - screenline_t* screen0 = calloc(t_lines, sizeof(screenline_t)); + void *screen0; int y, x; - memcpy(screen0, big_picture, t_lines * sizeof(screenline_t)); + screen0=malloc(screen_backupsize(t_lines, big_picture)); + screen_backup(t_lines, big_picture, screen0); add_io(0, 0); getyx(&y, &x); if (ch == 'v') @@ -888,7 +888,7 @@ gochess(int fd) } */ move(y, x); - memcpy(big_picture, screen0, t_lines * sizeof(screenline_t)); + screen_restore(t_lines, big_picture, screen0); free(screen0); add_io(fd, 0); scr_need_redraw = 1; |