summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2021-03-09 19:02:44 +0000
committerkettenis <kettenis@openbsd.org>2021-03-09 19:02:44 +0000
commit0af672a9c39a88f9bba1bede430126d1bff42acb (patch)
treef9c7dc761baf6279de9833f7d423ff87b33adb70
parentFix some old phrasing on how to set up a trap handler which aren't correct (diff)
downloadwireguard-openbsd-0af672a9c39a88f9bba1bede430126d1bff42acb.tar.xz
wireguard-openbsd-0af672a9c39a88f9bba1bede430126d1bff42acb.zip
Add support for 30-bit color modes.
-rw-r--r--sys/dev/fdt/simplefb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/fdt/simplefb.c b/sys/dev/fdt/simplefb.c
index 92a4546b9f1..13708ea3f32 100644
--- a/sys/dev/fdt/simplefb.c
+++ b/sys/dev/fdt/simplefb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: simplefb.c,v 1.11 2020/05/28 20:24:26 fcambus Exp $ */
+/* $OpenBSD: simplefb.c,v 1.12 2021/03/09 19:02:44 kettenis Exp $ */
/*
* Copyright (c) 2016 Mark Kettenis
*
@@ -54,7 +54,9 @@ struct simplefb_format simplefb_formats[] = {
{ "x8r8g8b8", 32, 16, 8, 8, 8, 0, 8 },
{ "a8r8g8b8", 32, 16, 8, 8, 8, 0, 8 },
{ "x8b8g8r8", 32 },
- { "a8b8g8r8", 32 }
+ { "a8b8g8r8", 32 },
+ { "x2r10g10b10", 32, 20, 10, 10, 10, 0, 10 },
+ { "a2r10g10b10", 32, 20, 10, 10, 10, 0, 10 },
};
struct simplefb_softc {