login
Header Space

 
 

Re: 2.6.26-rcX VC console scrolling regression

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <linux-kernel@...>, <adaplas@...>, <hpa@...>, <alan@...>, <akpm@...>, <torvalds@...>
Date: Friday, May 9, 2008 - 3:24 pm

On Friday 2008-05-09 08:26, David Miller wrote:
Try this patch please.

---
 drivers/video/console/fbcon.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
index ca2a543..774f803 100644
--- a/drivers/video/console/fbcon.c
+++ b/drivers/video/console/fbcon.c
@@ -2508,6 +2508,9 @@ static int fbcon_do_set_font(struct vc_data *vc, int w, int h,
 			c = vc->vc_video_erase_char;
 			vc->vc_video_erase_char =
 			    ((c & 0xfe00) >> 1) | (c & 0xff);
+			c = vc->vc_def_color;
+			vc->vc_scrl_erase_char =
+			    ((c & 0xFE00) >> 1) | (c & 0xFF);
 			vc->vc_attr >>= 1;
 		}
 	} else if (!vc->vc_hi_font_mask && cnt == 512) {
@@ -2538,9 +2541,14 @@ static int fbcon_do_set_font(struct vc_data *vc, int w, int h,
 			if (vc->vc_can_do_color) {
 				vc->vc_video_erase_char =
 				    ((c & 0xff00) << 1) | (c & 0xff);
+				c = vc->vc_def_color;
+				vc->vc_scrl_erase_char =
+				    ((c & 0xFF00) << 1) | (c & 0xFF);
 				vc->vc_attr <<= 1;
-			} else
+			} else {
 				vc->vc_video_erase_char = c & ~0x100;
+				vc->vc_scrl_erase_char = c & ~0x100;
+			}
 		}
 
 	}
-- 
1.5.5.1

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.26-rcX VC console scrolling regression, David Miller, (Thu May 8, 12:46 am)
Re: 2.6.26-rcX VC console scrolling regression, Jan Engelhardt, (Thu May 8, 7:50 am)
Re: 2.6.26-rcX VC console scrolling regression, David Miller, (Fri May 9, 2:26 am)
Re: 2.6.26-rcX VC console scrolling regression, Jan Engelhardt, (Fri May 9, 3:24 pm)
Re: 2.6.26-rcX VC console scrolling regression, David Miller, (Fri May 9, 5:55 pm)
Re: 2.6.26-rcX VC console scrolling regression, Jan Engelhardt, (Sat May 10, 3:48 am)
Re: 2.6.26-rcX VC console scrolling regression, Jan Engelhardt, (Thu May 8, 5:13 am)
Re: 2.6.26-rcX VC console scrolling regression, David Miller, (Thu May 8, 5:21 am)
Re: 2.6.26-rcX VC console scrolling regression, Andrew Morton, (Thu May 8, 2:02 am)
Re: 2.6.26-rcX VC console scrolling regression, Linus Torvalds, (Thu May 8, 11:04 am)
speck-geostationary