diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1999-06-13 16:29:25 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1999-06-13 16:29:25 +0000 |
commit | db7d4daea91e105e3859cf461d7e53b9b77454b2 (patch) | |
tree | 9bb65b95440af09e8aca63abe56970dd3360cc57 /drivers/video/fbcon-cfb4.c | |
parent | 9c1c01ead627bdda9211c9abd5b758d6c687d8ac (diff) |
Merge with Linux 2.2.8.
Diffstat (limited to 'drivers/video/fbcon-cfb4.c')
-rw-r--r-- | drivers/video/fbcon-cfb4.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/fbcon-cfb4.c b/drivers/video/fbcon-cfb4.c index 78b87ffe7..6248c28ee 100644 --- a/drivers/video/fbcon-cfb4.c +++ b/drivers/video/fbcon-cfb4.c @@ -50,7 +50,7 @@ static u16 nibbletab_cfb4[] = { void fbcon_cfb4_setup(struct display *p) { - p->next_line = p->var.xres_virtual>>1; + p->next_line = p->line_length ? p->line_length : p->var.xres_virtual>>1; p->next_plane = 0; } @@ -158,8 +158,8 @@ void fbcon_cfb4_putcs(struct vc_data *conp, struct display *p, u32 eorx, fgx, bgx; dest0 = p->screen_base + yy * fontheight(p) * bytes + xx * 4; - fgx=attr_fgcol(p,*s); - bgx=attr_bgcol(p,*s); + fgx=attr_fgcol(p,scr_readw(s)); + bgx=attr_bgcol(p,scr_readw(s)); fgx |= (fgx << 4); fgx |= (fgx << 8); fgx |= (fgx << 16); @@ -168,7 +168,7 @@ void fbcon_cfb4_putcs(struct vc_data *conp, struct display *p, bgx |= (bgx << 16); eorx = fgx ^ bgx; while (count--) { - c = *s++ & p->charmask; + c = scr_readw(s++) & p->charmask; cdat = p->fontdata + c * fontheight(p); for (rows = fontheight(p), dest = dest0; rows-- ; dest += bytes) { |