Changeset 2034
- Timestamp:
- 04/02/09 21:35:21 (3 years ago)
- Files:
-
- 1 modified
-
Whitix/trunk/video/earlyconsole.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/trunk/video/earlyconsole.c
r1750 r2034 2 2 #include <typedefs.h> 3 3 #include <print.h> 4 #include <string.h> 4 5 5 6 BYTE* screen=(BYTE*)0xC00B8000; … … 10 11 void EarlyConsoleNewLine() 11 12 { 13 int i; 14 12 15 curY++; 13 16 curX=0; … … 16 19 EarlyConsoleSetPos(curX, curY); 17 20 else{ 18 // EarlyConsoleClearScreen(); 19 // curX=curY=0; 21 /* Scroll the screen. */ 22 for (i=0; i < 24 ; i++) 23 memcpy ( &screen [ i*80*2] , &screen [ (i+1)*80*2 ] , 80*2); 24 25 /* Clear the last line of the console. */ 26 memsetw( &screen[ i*80*2 ] , 80*2, ((0x07 << 8) | (' '))); 27 28 curY = 24; 20 29 } 21 30 }
