K Krzysztof Helt #
Message details and related content
From: Krzysztof Helt <redacted>
The interlaced and double line mode bits should not be
copied to new console when the console is switched.
Otherwise, the new console may be set to incorrect refresh
rate.
Also, the x and y offsets does not need to be copied.
Signed-off-by: Krzysztof Helt <redacted>
diff -urp linux-2.6.25/drivers/video/console/fbcon.c linux-new/drivers/video/console/fbcon.c--- linux-2.6.25/drivers/video/console/fbcon.c 2008-05-23 10:06:04.144074130 +0200
+++ linux-new/drivers/video/console/fbcon.c 2008-05-23 09:44:50.544333721 +0200@@ -2274,9 +2274,7 @@ static int fbcon_switch(struct vc_data * * in fb_set_var() */ info->var.activate = var.activate; - var.yoffset = info->var.yoffset; - var.xoffset = info->var.xoffset; - var.vmode = info->var.vmode; + var.vmode |= info->var.vmode & ~FB_VMODE_MASK; fb_set_var(info, &var); ops->var = info->var; ----------------------------------------------------------------------
Podbij Dziki Zachod!Gra strategiczna online Sprawdz >>> http://link.interia.pl/f1dff ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/