|
From: James S. <jsi...@in...> - 2002-12-14 22:16:24
|
> > 1) Its the same place on the screen or a different place every time? > > I think it's at the last line of the screen every time. I think I might now what the problem is. scrup is using memcpy even when the memory areas src, dest overlap. The key is to use memmove which handles overlapping memory gracefully. Tell me if the following patch works for you. --- vt.c.orig Sat Dec 14 13:32:42 2002 +++ vt.c Sat Dec 14 13:34:46 2002 @@ -262,7 +262,7 @@ return; d = (unsigned short *) (origin+video_size_row*t); s = (unsigned short *) (origin+video_size_row*(t+nr)); - scr_memcpyw(d, s, (b-t-nr) * video_size_row); + scr_memmovew(d, s, (b-t-nr) * video_size_row); scr_memsetw(d + (b-t-nr) * video_num_columns, video_erase_char, video_size_row*nr); } |