Thread (10 messages) 10 messages, 4 authors, 2002-12-14

Re: [BK fbdev] Yet again more fbdev updates.

From: James Simmons <hidden>
Date: 2002-12-14 22:07:26
Also in: lkml

quoted
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);
 }
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help