fbcon: Do not set palette if console is not visible

Started by Antonino A. Daplas on Mar 20, 2005

Subsystems (3)

Maintainers (3)

DORMANTno replies

open the first message on its own page

Message details and related content
A long standing bug in fbcon where switching/opening a vt will also
set the palette even if the vt is in the background.  This results in
color corruption in the foreground vt.

From: Antonino Daplas <redacted>
Signed-off-by: Antonino Daplas <redacted>
---

 fbcon.c |    3 +++
 1 files changed, 3 insertions(+)

diff -Nru a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
--- a/drivers/video/console/fbcon.c	2005-03-16 07:39:24 +08:00
+++ b/drivers/video/console/fbcon.c	2005-03-18 04:58:31 +08:00
@@ -2331,6 +2331,9 @@
 	if (fbcon_is_inactive(vc, info))
 		return -EINVAL;
 
+	if (!CON_IS_VISIBLE(vc))
+		return 0;
+
 	depth = fb_get_color_depth(&info->var);
 	if (depth > 3) {
 		for (i = j = 0; i < 16; i++) {




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help