diff options
Diffstat (limited to 'sys/arch/hp300/dev/gbox.c')
-rw-r--r-- | sys/arch/hp300/dev/gbox.c | 4 |
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: |