patch-2.1.109 linux/drivers/video/fbcon-iplan2p4.c

Next file: linux/drivers/video/fbcon-iplan2p4.h
Previous file: linux/drivers/video/fbcon-iplan2p2.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.108/linux/drivers/video/fbcon-iplan2p4.c linux/drivers/video/fbcon-iplan2p4.c
@@ -316,13 +316,11 @@
     int bytes = p->next_line;
     u32 eorx, fgx, bgx, fdx;
 
-    c &= 0xff;
-
     dest = p->screen_base + yy * p->fontheight * bytes + (xx>>1)*8 + (xx & 1);
-    cdat = p->fontdata + (c * p->fontheight);
+    cdat = p->fontdata + (c & 0xff) * p->fontheight;
 
-    fgx = expand4l(attr_fgcol(p,conp));
-    bgx = expand4l(attr_bgcol(p,conp));
+    fgx = expand4l(attr_fgcol(p,c));
+    bgx = expand4l(attr_bgcol(p,c));
     eorx = fgx ^ bgx;
 
     for(rows = p->fontheight ; rows-- ; dest += bytes) {
@@ -332,7 +330,7 @@
 }
 
 void fbcon_iplan2p4_putcs(struct vc_data *conp, struct display *p,
-			  const char *s, int count, int yy, int xx)
+			  const unsigned short *s, int count, int yy, int xx)
 {
     u8 *dest, *dest0;
     u8 *cdat, c;
@@ -342,8 +340,8 @@
 
     bytes = p->next_line;
     dest0 = p->screen_base + yy * p->fontheight * bytes + (xx>>1)*8 + (xx & 1);
-    fgx = expand4l(attr_fgcol(p,conp));
-    bgx = expand4l(attr_bgcol(p,conp));
+    fgx = expand4l(attr_fgcol(p,*s));
+    bgx = expand4l(attr_bgcol(p,*s));
     eorx = fgx ^ bgx;
 
     while (count--) {
@@ -398,6 +396,17 @@
     fbcon_iplan2p4_setup, fbcon_iplan2p4_bmove, fbcon_iplan2p4_clear,
     fbcon_iplan2p4_putc, fbcon_iplan2p4_putcs, fbcon_iplan2p4_revc, NULL
 };
+
+
+#ifdef MODULE
+int init_module(void)
+{
+    return 0;
+}
+
+void cleanup_module(void)
+{}
+#endif /* MODULE */
 
 
     /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov