diff options
author | Tobias Heider <tobhe@cvs.openbsd.org> | 2024-11-12 20:52:36 +0000 |
---|---|---|
committer | Tobias Heider <tobhe@cvs.openbsd.org> | 2024-11-12 20:52:36 +0000 |
commit | c7762499cbdf2208441f0bbdba2119d0e228cc1c (patch) | |
tree | 901ba2f3dd4edc4e6bcdc6dc96b9659ea1e379b9 | |
parent | 88a20f3298fac34170ed21a7d24ad386081050b8 (diff) |
Fix simplefb colours for BPP16 and BPP24 by specifiying colour
offsets for RGB formats explicitly.
From Paul Fertser
ok patrick@ miod@ kettenis@
-rw-r--r-- | sys/dev/fdt/simplefb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/fdt/simplefb.c b/sys/dev/fdt/simplefb.c index 48c00d3d83f..87b0ef1ce7a 100644 --- a/sys/dev/fdt/simplefb.c +++ b/sys/dev/fdt/simplefb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: simplefb.c,v 1.20 2023/04/16 11:34:32 kettenis Exp $ */ +/* $OpenBSD: simplefb.c,v 1.21 2024/11/12 20:52:35 tobhe Exp $ */ /* * Copyright (c) 2016 Mark Kettenis * @@ -47,10 +47,10 @@ struct simplefb_format { * rasops defaults. */ const struct simplefb_format simplefb_formats[] = { - { "r5g6b5", 16 }, - { "x1r5g5b5", 15 }, - { "a1r5g5b5", 15 }, - { "r8g8b8", 24 }, + { "r5g6b5", 16, 11, 5, 5, 6, 0, 5 }, + { "x1r5g5b5", 15, 10, 5, 5, 5, 0, 5 }, + { "a1r5g5b5", 15, 10, 5, 5, 5, 0, 5 }, + { "r8g8b8", 24, 16, 8, 8, 8, 0, 8 }, { "x8r8g8b8", 32, 16, 8, 8, 8, 0, 8 }, { "a8r8g8b8", 32, 16, 8, 8, 8, 0, 8 }, { "x8b8g8r8", 32 }, |