kern

diff src/vid.c @ 12:eaec918de072

- fixed the scrolling issue - other minor crap
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 22 Feb 2011 18:51:44 +0200
parents 0489a34ab348
children 06172322fb76
line diff
     1.1 --- a/src/vid.c	Sat Feb 19 04:41:51 2011 +0200
     1.2 +++ b/src/vid.c	Tue Feb 22 18:51:44 2011 +0200
     1.3 @@ -3,7 +3,7 @@
     1.4  #include "asmops.h"
     1.5  
     1.6  /* height of our virtual console text buffer */
     1.7 -#define VIRT_HEIGHT	1024
     1.8 +#define VIRT_HEIGHT	200
     1.9  
    1.10  /* CRTC ports */
    1.11  #define CRTC_ADDR	0x3d4
    1.12 @@ -60,7 +60,7 @@
    1.13  		/* The bottom of the visible range reached the end of our text buffer.
    1.14  		 * Copy the rest of the lines to the top and reset start_line.
    1.15  		 */
    1.16 -		memcpy(vmem, vmem + start_line * WIDTH, (HEIGHT - 1) * WIDTH);
    1.17 +		memcpy(vmem, vmem + start_line * WIDTH, (HEIGHT - 1) * WIDTH * 2);
    1.18  		start_line = 0;
    1.19  	}
    1.20