diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-03-13 19:40:50 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-03-13 19:40:50 +0000 |
commit | 1adb1d0fd1934ebb394bc3e83bc34a6408fd8c18 (patch) | |
tree | c5394e174cead1767b05195a67d530f69153abfa /sys/dev/sbus/zx.c | |
parent | 1a194b3d7d135ee33f0c5d0235e27315e971a3b6 (diff) |
When about to run X11 in 32 bpp mode, advertize correctly that we are
really using 24 bpp pixels on 32 bit boundaries.
Diffstat (limited to 'sys/dev/sbus/zx.c')
-rw-r--r-- | sys/dev/sbus/zx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/sbus/zx.c b/sys/dev/sbus/zx.c index 43b8dfc409f..73f35c4912d 100644 --- a/sys/dev/sbus/zx.c +++ b/sys/dev/sbus/zx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zx.c,v 1.12 2006/12/17 22:18:16 miod Exp $ */ +/* $OpenBSD: zx.c,v 1.13 2007/03/13 19:40:49 miod Exp $ */ /* $NetBSD: zx.c,v 1.5 2002/10/02 16:52:46 thorpej Exp $ */ /* @@ -349,6 +349,9 @@ zx_ioctl(void *dev, u_long cmd, caddr_t data, int flags, struct proc *p) wdf->depth = 32; wdf->cmsize = 0; break; + case WSDISPLAYIO_GETSUPPORTEDDEPTH: + *(u_int *)data = WSDISPLAYIO_DEPTH_24_32; + break; case WSDISPLAYIO_LINEBYTES: *(u_int *)data = sc->sc_sunfb.sf_linebytes; break; |