patch-2.1.112 linux/drivers/video/fbcon-ilbm.c
Next file: linux/drivers/video/fbcon-ilbm.h
Previous file: linux/drivers/video/fbcon-cfb8.h
Back to the patch index
Back to the overall index
- Lines: 42
- Date:
Sun Jul 26 14:40:19 1998
- Orig file:
v2.1.111/linux/drivers/video/fbcon-ilbm.c
- Orig date:
Sun Jul 26 11:57:17 1998
diff -u --recursive --new-file v2.1.111/linux/drivers/video/fbcon-ilbm.c linux/drivers/video/fbcon-ilbm.c
@@ -103,7 +103,7 @@
int fg0, bg0, fg, bg;
dest = p->screen_base+yy*p->fontheight*p->next_line+xx;
- cdat = p->fontdata+(c&0xff)*p->fontheight;
+ cdat = p->fontdata+(c&p->charmask)*p->fontheight;
fg0 = attr_fgcol(p,c);
bg0 = attr_bgcol(p,c);
@@ -149,7 +149,7 @@
{
u8 *dest0, *dest, *cdat1, *cdat2, *cdat3, *cdat4;
u_int rows, i;
- u8 c1, c2, c3, c4;
+ u16 c1, c2, c3, c4;
u32 d;
int fg0, bg0, fg, bg;
@@ -159,7 +159,7 @@
while (count--)
if (xx&3 || count < 3) { /* Slow version */
- c1 = *s++;
+ c1 = *s++ & p->charmask;
dest = dest0++;
xx++;
@@ -185,10 +185,10 @@
}
}
} else { /* Fast version */
- c1 = s[0];
- c2 = s[1];
- c3 = s[2];
- c4 = s[3];
+ c1 = s[0] & p->charmask;
+ c2 = s[1] & p->charmask;
+ c3 = s[2] & p->charmask;
+ c4 = s[3] & p->charmask;
dest = dest0;
cdat1 = p->fontdata+c1*p->fontheight;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov