diff options
author | 2009-06-02 18:51:03 +0000 | |
---|---|---|
committer | 2009-06-02 18:51:03 +0000 | |
commit | 2e189a05ba2ad68def26ce86c29758ef8924afa2 (patch) | |
tree | 00783dc8f006850d5642eaf9c29f5c0f953ac0d1 | |
parent | Define a proper wsdisplay type for machfb(4). (diff) | |
download | wireguard-openbsd-2e189a05ba2ad68def26ce86c29758ef8924afa2.tar.xz wireguard-openbsd-2e189a05ba2ad68def26ce86c29758ef8924afa2.zip |
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@
-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; |