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/arch/sparc/dev/tvtwo.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/arch/sparc/dev/tvtwo.c')
-rw-r--r-- | sys/arch/sparc/dev/tvtwo.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/tvtwo.c b/sys/arch/sparc/dev/tvtwo.c index 4dc152b6fcc..46536579317 100644 --- a/sys/arch/sparc/dev/tvtwo.c +++ b/sys/arch/sparc/dev/tvtwo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tvtwo.c,v 1.13 2006/08/14 12:24:30 miod Exp $ */ +/* $OpenBSD: tvtwo.c,v 1.14 2007/03/13 19:40:48 miod Exp $ */ /* * Copyright (c) 2003, 2006, Miodrag Vallat. * All rights reserved. @@ -294,6 +294,9 @@ tvtwo_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 * 4; break; |