]> git.pld-linux.org Git - packages/kernel.git/blob - kernel-fbcon-margins.patch
- fix vserver patch for 3.14.5
[packages/kernel.git] / kernel-fbcon-margins.patch
1 This fixes "margin colour" (colour used to clear margins - e.g. a half of line
2 at the bottom of 100x37 console on 800x600 framebuffer).
3
4 I don't know what was the intention behind using attr_bgcol_ec() here, but it
5 caused using of background colour of last erase character to clear margins -
6 which definitely isn't what we want...
7 This patch changes margin colour to black (or colour 0 in palette modes).
8
9         -- Jakub Bogusz <qboosh@pld-linux.org>
10
11 --- linux-2.6.9/drivers/video/console/bitblit.c.orig    2004-10-20 18:13:32.000000000 +0200
12 +++ linux-2.6.9/drivers/video/console/bitblit.c 2004-10-20 18:22:35.153056112 +0200
13 @@ -206,7 +206,6 @@
14  static void bit_clear_margins(struct vc_data *vc, struct fb_info *info,
15                               int bottom_only)
16  {
17 -       int bgshift = (vc->vc_hi_font_mask) ? 13 : 12;
18         unsigned int cw = vc->vc_font.width;
19         unsigned int ch = vc->vc_font.height;
20         unsigned int rw = info->var.xres - (vc->vc_cols*cw);
21 @@ -215,7 +214,7 @@
22         unsigned int bs = info->var.yres - bh;
23         struct fb_fillrect region;
24  
25 -       region.color = attr_bgcol_ec(bgshift, vc, info);
26 +       region.color = 0;
27         region.rop = ROP_COPY;
28  
29         if (rw && !bottom_only) {
This page took 0.089722 seconds and 3 git commands to generate.