Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mac68k/dev Switch from ``(1 << depth) color'' to ``...



details:   https://anonhg.NetBSD.org/src/rev/822c037cf1a7
branches:  trunk
changeset: 368869:822c037cf1a7
user:      rin <rin%NetBSD.org@localhost>
date:      Tue Aug 09 08:09:44 2022 +0000

description:
Switch from ``(1 << depth) color'' to ``(depth)-bpp color'' in
attach message.

For depth == 32, fix ``0 color'', and prevent ambiguous ``16Mi color''.

I don't know whether there is 24-bpp graphic card for mac68k or not,
although.

diffstat:

 sys/arch/mac68k/dev/grf_subr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1f44fcd0f383 -r 822c037cf1a7 sys/arch/mac68k/dev/grf_subr.c
--- a/sys/arch/mac68k/dev/grf_subr.c    Tue Aug 09 08:03:22 2022 +0000
+++ b/sys/arch/mac68k/dev/grf_subr.c    Tue Aug 09 08:09:44 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf_subr.c,v 1.24 2021/08/07 16:18:57 thorpej Exp $    */
+/*     $NetBSD: grf_subr.c,v 1.25 2022/08/09 08:09:44 rin Exp $        */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: grf_subr.c,v 1.24 2021/08/07 16:18:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf_subr.c,v 1.25 2022/08/09 08:09:44 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -54,7 +54,7 @@
        if (gm->psize == 1)
                printf("monochrome\n");
        else
-               printf("%d color\n", 1 << gm->psize);
+               printf("%hu-bpp color\n", gm->psize);
 
        /* Attach grf semantics to the hardware. */
        ga.ga_name = "grf";



Home | Main Index | Thread Index | Old Index