From 863c0e928b70d262d94ee9f9119b407358ac5bd5 Mon Sep 17 00:00:00 2001 From: James Simmons Date: Mon, 9 Feb 2004 17:38:45 -0800 Subject: [PATCH] [PATCH] framebuffer GPM corruption fix. This patch fixes the GPM cursor corruption people where seeing. --- drivers/video/console/fbcon.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 3826ea1a4e7e3..11422933cf150 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c @@ -1826,9 +1826,11 @@ static int fbcon_do_set_font(struct vc_data *vc, struct console_font_op *op, vc->vc_font.height = h; if (vc->vc_hi_font_mask && cnt == 256) { vc->vc_hi_font_mask = 0; - if (vc->vc_can_do_color) + if (vc->vc_can_do_color) { vc->vc_complement_mask >>= 1; - + vc->vc_s_complement_mask >>= 1; + } + /* ++Edmund: reorder the attribute bits */ if (vc->vc_can_do_color) { unsigned short *cp = @@ -1847,9 +1849,11 @@ static int fbcon_do_set_font(struct vc_data *vc, struct console_font_op *op, } } else if (!vc->vc_hi_font_mask && cnt == 512) { vc->vc_hi_font_mask = 0x100; - if (vc->vc_can_do_color) + if (vc->vc_can_do_color) { vc->vc_complement_mask <<= 1; - + vc->vc_s_complement_mask <<= 1; + } + /* ++Edmund: reorder the attribute bits */ { unsigned short *cp = -- 2.53.0