summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/dev/gbox.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-01-21 16:24:13 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-01-21 16:24:13 +0000
commit1df4c703e39363bec334e809d0a39a297ceceec2 (patch)
tree0bfc1d015919d713bf2187ecf95b176d42680ff7 /sys/arch/hp300/dev/gbox.c
parent6405d08b800a0b4df1a326899f3fac2c24649acb (diff)
Oops, revert changes not intended to be commited in previous commit.
Diffstat (limited to 'sys/arch/hp300/dev/gbox.c')
-rw-r--r--sys/arch/hp300/dev/gbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hp300/dev/gbox.c b/sys/arch/hp300/dev/gbox.c
index 061b60eb627..b438c19231d 100644
--- a/sys/arch/hp300/dev/gbox.c
+++ b/sys/arch/hp300/dev/gbox.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gbox.c,v 1.6 2005/01/21 16:22:34 miod Exp $ */
+/* $OpenBSD: gbox.c,v 1.7 2005/01/21 16:24:12 miod Exp $ */
/*
* Copyright (c) 2005, Miodrag Vallat
@@ -337,7 +337,7 @@ gbox_ioctl(void *v, u_long cmd, caddr_t data, int flags, struct proc *p)
wdf->cmsize = 1 << fb->planes;
break;
case WSDISPLAYIO_LINEBYTES:
- *(u_int *)data = fb->fbwidth;
+ *(u_int *)data = (fb->fbwidth * fb->planes) >> 3;
break;
case WSDISPLAYIO_GETCMAP:
case WSDISPLAYIO_PUTCMAP: