From: John Hodge Date: Tue, 14 May 2013 03:25:19 +0000 (+0800) Subject: Kernel/VTerm - C99 and slight debug X-Git-Tag: rel0.15~494 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=1f61f9f0aff88b8dc62271ced741f6d211ae8ecc;p=tpg%2Facess2.git Kernel/VTerm - C99 and slight debug --- diff --git a/KernelLand/Kernel/drv/vterm.c b/KernelLand/Kernel/drv/vterm.c index aed92582..cf12ff96 100644 --- a/KernelLand/Kernel/drv/vterm.c +++ b/KernelLand/Kernel/drv/vterm.c @@ -737,11 +737,10 @@ void VT_SetTerminal(int ID) gpVT_CurTerm->Buffer = malloc( gpVT_CurTerm->Width*gpVT_CurTerm->Height*4 ); if( gpVT_CurTerm->Width < giVT_RealWidth ) { - int line; Uint ofs = 0; Uint32 *dest = gpVT_CurTerm->Buffer; // Slower scanline copy - for( line = 0; line < gpVT_CurTerm->Height; line ++ ) + for( int line = 0; line < gpVT_CurTerm->Height; line ++ ) { VFS_ReadAt(giVT_OutputDevHandle, ofs, gpVT_CurTerm->Width*4, dest); ofs += giVT_RealWidth * 4; @@ -755,6 +754,7 @@ void VT_SetTerminal(int ID) gpVT_CurTerm->Buffer ); } + LOG("Cached screen contents"); } // Update current terminal ID