From a4da507522747e3d7d6c6ef0a59e7a2efac27ac4 Mon Sep 17 00:00:00 2001 From: james <> Date: Tue, 5 Feb 2008 01:11:46 +0000 Subject: *** empty log message *** --- src/crt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/crt.c') diff --git a/src/crt.c b/src/crt.c index 36011a9..7b8e7dd 100644 --- a/src/crt.c +++ b/src/crt.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.4 2008/02/05 01:11:46 james + * *** empty log message *** + * * Revision 1.3 2008/02/04 20:23:55 james * *** empty log message *** * @@ -100,12 +103,13 @@ crt_scroll_down (CRT * c, CRT_Pos s, CRT_Pos e,int ea) l *= sizeof (CRT_CA); n = e.y - s.y; + n++; p = CRT_ADDR_POS (&e); while (n--) { - memcpy (&c->screen[p], &c->screen[p + CRT_COLS], l); + memcpy (&c->screen[p],&c->screen[p-CRT_COLS], l); p -= CRT_COLS; } -- cgit v1.2.3