From 4bfe961c8045e152976bdb9858c2e6ca46ff8991 Mon Sep 17 00:00:00 2001 From: phx Date: Tue, 7 Feb 2012 18:48:19 +0000 Subject: [PATCH] On 8-bit screens only enable font anti-aliasing when the cmap_callback property is defined. It is needed for a suitable R3G3B2 color map. Ok by releng@ --- sys/dev/wsfb/genfb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/wsfb/genfb.c b/sys/dev/wsfb/genfb.c index da6de5f6576b..ba7bc484025c 100644 --- a/sys/dev/wsfb/genfb.c +++ b/sys/dev/wsfb/genfb.c @@ -1,4 +1,4 @@ -/* $NetBSD: genfb.c,v 1.46 2012/01/11 16:13:11 macallan Exp $ */ +/* $NetBSD: genfb.c,v 1.47 2012/02/07 18:48:19 phx Exp $ */ /*- * Copyright (c) 2007 Michael Lorenz @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.46 2012/01/11 16:13:11 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.47 2012/02/07 18:48:19 phx Exp $"); #include #include @@ -510,7 +510,7 @@ genfb_init_screen(void *cookie, struct vcons_screen *scr, if (ri->ri_depth == 32) ri->ri_flg |= RI_ENABLE_ALPHA; - if (ri->ri_depth == 8) + if (ri->ri_depth == 8 && sc->sc_cmcb != NULL) ri->ri_flg |= RI_ENABLE_ALPHA | RI_8BIT_IS_RGB;