<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
From: "Antonino A. Daplas" &lt;adaplas@hotpop.com&gt;

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 &lt;adaplas@pol.net&gt;
Signed-off-by: Antonino Daplas &lt;adaplas@pol.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
---

 25-akpm/drivers/video/console/fbcon.c |    3 +++
 1 files changed, 3 insertions(+)

diff -puN drivers/video/console/fbcon.c~fbcon-do-not-set-palette-if-console-is-not-visible drivers/video/console/fbcon.c
--- 25/drivers/video/console/fbcon.c~fbcon-do-not-set-palette-if-console-is-not-visible	2005-03-20 16:05:00.000000000 -0800
+++ 25-akpm/drivers/video/console/fbcon.c	2005-03-20 16:05:00.000000000 -0800
@@ -2331,6 +2331,9 @@ static int fbcon_set_palette(struct vc_d
 	if (fbcon_is_inactive(vc, info))
 		return -EINVAL;
 
+	if (!CON_IS_VISIBLE(vc))
+		return 0;
+
 	depth = fb_get_color_depth(&amp;info-&gt;var);
 	if (depth &gt; 3) {
 		for (i = j = 0; i &lt; 16; i++) {
_
</pre></body></html>