framebuffer GPM corruption fix.

From: James Simmons
Date: Tue Feb 10 2004 - 12:35:44 EST



This patch fixes the GPM cursor corruption people where seeing.

--- fbcon.c 2004-02-09 16:41:26.000000000 -0800
+++ fbcon.c.fix 2004-02-09 16:41:17.000000000 -0800
@@ -1826,9 +1826,11 @@
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 @@
}
} 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 =

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/