ChangeSet 1.2298, 2005/03/31 08:47:43-08:00, [EMAIL PROTECTED]
[PATCH] fbcon: Do not set palette if console is not visible
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 <[EMAIL PROTECTED]>
Signed-off-by: Antonino Daplas <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
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-31 10:27:16 -08:00
+++ b/drivers/video/console/fbcon.c 2005-03-31 10:27:16 -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++) {
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html