]>
Commit | Line | Data |
---|---|---|
c9d1c54c AM |
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.0-test2/drivers/video/console/fbcon.c.orig 2003-07-14 05:36:32.000000000 +0200 | |
12 | +++ linux-2.6.0-test2/drivers/video/console/fbcon.c 2003-07-31 00:53:26.000000000 +0200 | |
13 | @@ -518,7 +518,6 @@ | |
14 | void accel_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 | @@ -527,7 +526,7 @@ | |
22 | unsigned int bs = info->var.yres - bh; | |
23 | struct fb_fillrect region; | |
24 | ||
25 | - region.color = attr_bgcol_ec(bgshift, vc); | |
26 | + region.color = 0; | |
27 | region.rop = ROP_COPY; | |
28 | ||
29 | if (rw && !bottom_only) { |