patch-2.2.11 linux/drivers/video/g364fb.c
Next file: linux/drivers/video/imsttfb.c
Previous file: linux/drivers/video/fbmem.c
Back to the patch index
Back to the overall index
-  Lines: 24
-  Date:
Mon Aug  9 12:04:40 1999
-  Orig file: 
v2.2.10/linux/drivers/video/g364fb.c
-  Orig date: 
Thu Oct  1 10:02:21 1998
diff -u --recursive --new-file v2.2.10/linux/drivers/video/g364fb.c linux/drivers/video/g364fb.c
@@ -1,4 +1,4 @@
-/* $Id: g364fb.c,v 1.3 1998/08/28 22:43:00 tsbogend Exp $
+/* $Id: g364fb.c,v 1.4 1999/02/25 20:39:56 tsbogend Exp $
  *
  * linux/drivers/video/g364fb.c -- Mips Magnum frame buffer device
  *
@@ -144,7 +144,7 @@
      case CM_MOVE:
      case CM_DRAW:
 	*(unsigned int *) CTLA_REG &= ~CURS_TOGGLE;
-	*(unsigned int *) CURS_POS_REG = ((x * p->fontwidth) << 12) | ((y * p->fontheight)-p->var.yoffset);
+	*(unsigned int *) CURS_POS_REG = ((x * fontwidth(p)) << 12) | ((y * fontheight(p))-p->var.yoffset);
 	break;
     }
 }
@@ -485,7 +485,7 @@
     if (regno > 255)
 	return 1;
 
-    red >> = 8;
+    red >>= 8;
     green >>= 8;
     blue >>=8;
     palette[regno].red = red;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)