Kernel/VTerm - Fixed not changing VT resolution when default resolution is unavaliable
authorJohn Hodge <[email protected]>
Sun, 23 Oct 2011 13:43:15 +0000 (21:43 +0800)
committerJohn Hodge <[email protected]>
Sun, 23 Oct 2011 13:43:15 +0000 (21:43 +0800)
Kernel/drv/vterm.c

index b0fd58d..ee32016 100644 (file)
@@ -325,6 +325,8 @@ void VT_SetResolution(int Width, int Height)
                        giVT_RealWidth, giVT_RealHeight,
                        mode.width, mode.height
                        );
+               giVT_RealWidth = mode.width;
+               giVT_RealHeight = mode.height;
        }
        VFS_IOCtl( giVT_OutputDevHandle, VIDEO_IOCTL_GETSETMODE, &tmp );
        
@@ -336,8 +338,6 @@ void VT_SetResolution(int Width, int Height)
                                        *(giVT_Scrollback+1);
                //tVT_Char      *tmp;
                // Resize the text terminals
-               giVT_RealWidth = mode.width;
-               giVT_RealHeight = mode.height;
                Log_Debug("VTerm", "Resizing terminals to %ix%i",
                        giVT_RealWidth/giVT_CharWidth, giVT_RealHeight/giVT_CharHeight);
                for( i = 0; i < NUM_VTS; i ++ )

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