From: John Hodge Date: Sun, 23 Oct 2011 13:43:15 +0000 (+0800) Subject: Kernel/VTerm - Fixed not changing VT resolution when default resolution is unavaliable X-Git-Tag: rel0.14~206 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=504e0f27f9240f083cefdc9f8dd7fefe0af544cc;p=tpg%2Facess2.git Kernel/VTerm - Fixed not changing VT resolution when default resolution is unavaliable --- 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 ++ )