diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-06-02 18:51:04 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-06-02 18:51:04 +0000 |
commit | 17efbfb6dd5e3fe171d152d05e114591ba7a2292 (patch) | |
tree | 53aba1ab7af1382fb89aad853a5556bafd1e08f3 /sys/arch | |
parent | 58a1eb7dd28603cef0342d3fb794d421ac86630a (diff) |
When about to run X11 in 32 bpp mode, advertize correctly that we are
really using 24 bpp pixels on 32 bit boundaries.
ok miod@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/dev/vgafb.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/vgafb.c b/sys/arch/sparc64/dev/vgafb.c index 2c2f5b49664..8663c0debce 100644 --- a/sys/arch/sparc64/dev/vgafb.c +++ b/sys/arch/sparc64/dev/vgafb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vgafb.c,v 1.57 2009/03/01 10:48:54 kettenis Exp $ */ +/* $OpenBSD: vgafb.c,v 1.58 2009/06/02 18:51:03 kettenis Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -225,6 +225,12 @@ vgafb_ioctl(v, cmd, data, flags, p) wdf->depth = sc->sc_sunfb.sf_depth; wdf->cmsize = 256; break; + case WSDISPLAYIO_GETSUPPORTEDDEPTH: + if (sc->sc_sunfb.sf_depth == 32) + *(u_int *)data = WSDISPLAYIO_DEPTH_24_32; + else + return (-1); + break; case WSDISPLAYIO_LINEBYTES: *(u_int *)data = sc->sc_sunfb.sf_linebytes; break; |