Use the font ROM size, instead of hard coding one.
authordownsj <downsj@openbsd.org>
Thu, 6 Feb 1997 00:14:41 +0000 (00:14 +0000)
committerdownsj <downsj@openbsd.org>
Thu, 6 Feb 1997 00:14:41 +0000 (00:14 +0000)
sys/arch/hp300/dev/itevar.h

index 7a3c265..b42ba47 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: itevar.h,v 1.7 1997/02/05 14:22:18 downsj Exp $       */
+/*     $OpenBSD: itevar.h,v 1.8 1997/02/06 00:14:41 downsj Exp $       */
 /*     $NetBSD: itevar.h,v 1.13 1997/01/30 09:18:57 thorpej Exp $      */
 
 /*
@@ -190,7 +190,7 @@ struct ite_softc {
 
 #define        TABSIZE         8
 #define        TABEND(ip)      ((ip)->tty ? ((ip)->tty->t_winsize.ws_col - TABSIZE) \
-                           : (80 - TABSIZE))
+                           : ((ip)->cols - TABSIZE))
 
 #ifdef _KERNEL
 extern struct ite_data ite_cn;         /* ite_data for console device */