diff options
author | 2021-03-13 14:02:02 +0000 | |
---|---|---|
committer | 2021-03-13 14:02:02 +0000 | |
commit | 5e550f1845bcef33653438d2985ccda82f2f48c9 (patch) | |
tree | 08a240d2f87a7788b66b968ecd889ee6053076f6 | |
parent | only try to set timestamps on files; avoids error with ftp -o /dev/null (diff) | |
download | wireguard-openbsd-5e550f1845bcef33653438d2985ccda82f2f48c9.tar.xz wireguard-openbsd-5e550f1845bcef33653438d2985ccda82f2f48c9.zip |
Advertise 30-bit color support.
ok matthieu@, jsg@
-rw-r--r-- | sys/dev/fdt/simplefb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/fdt/simplefb.c b/sys/dev/fdt/simplefb.c index 13708ea3f32..e1d1cf2a1f5 100644 --- a/sys/dev/fdt/simplefb.c +++ b/sys/dev/fdt/simplefb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: simplefb.c,v 1.12 2021/03/09 19:02:44 kettenis Exp $ */ +/* $OpenBSD: simplefb.c,v 1.13 2021/03/13 14:02:02 kettenis Exp $ */ /* * Copyright (c) 2016 Mark Kettenis * @@ -264,7 +264,10 @@ simplefb_wsioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *p) case WSDISPLAYIO_GETSUPPORTEDDEPTH: switch (ri->ri_depth) { case 32: - *(u_int *)data = WSDISPLAYIO_DEPTH_24_32; + if (ri->ri_rnum == 10) + *(u_int *)data = WSDISPLAYIO_DEPTH_30; + else + *(u_int *)data = WSDISPLAYIO_DEPTH_24_32; break; case 24: *(u_int *)data = WSDISPLAYIO_DEPTH_24_24; |