From 504e0f27f9240f083cefdc9f8dd7fefe0af544cc Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 23 Oct 2011 21:43:15 +0800 Subject: [PATCH] Kernel/VTerm - Fixed not changing VT resolution when default resolution is unavaliable --- Kernel/drv/vterm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/drv/vterm.c b/Kernel/drv/vterm.c index b0fd58d6..ee32016b 100644 --- a/Kernel/drv/vterm.c +++ b/Kernel/drv/vterm.c @@ -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 ++ ) -- 2.20.1