This patch is against 2.5.71. It fixes s_complement_mask so that it is
always a valid default value for complement_mask.
Chris
--- a/drivers/video/console/fbcon.c 2003-06-01 09:56:46.000000000 -0400
+++ b/drivers/video/console/fbcon.c 2003-06-15 22:54:47.000000000 -0400
@@ -1826,8 +1826,10 @@
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) {
@@ -1847,8 +1849,10 @@
}
} 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 */
{
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/