Kernel/VTerm - C99 and slight debug
authorJohn Hodge <[email protected]>
Tue, 14 May 2013 03:25:19 +0000 (11:25 +0800)
committerJohn Hodge <[email protected]>
Tue, 14 May 2013 03:25:19 +0000 (11:25 +0800)
KernelLand/Kernel/drv/vterm.c

index aed9258..cf12ff9 100644 (file)
@@ -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

UCC git Repository :: git.ucc.asn.au