[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-fbdev-devel
Subject: [Linux-fbdev-devel] [PATCH][2.5] fbcon.c complement_mask bug (fwd)
From: Geert Uytterhoeven <geert () linux-m68k ! org>
Date: 2003-06-16 8:48:34
[Download RAW message or body]
---------- Forwarded message ----------
Date: Sun, 15 Jun 2003 23:34:45 -0400
From: Chris Heath <chris@heathens.co.nz>
To: linux-kernel@vger.kernel.org
Subject: [PATCH][2.5] fbcon.c complement_mask bug
When using a frame buffer console with a 512-character font, the mouse
pointer starts using the wrong complement_mask after a console reset.
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/
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic