Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wsfb On 8-bit screens only enable font anti-aliasing...



details:   https://anonhg.NetBSD.org/src/rev/9f1d05ac1f2a
branches:  trunk
changeset: 773579:9f1d05ac1f2a
user:      phx <phx%NetBSD.org@localhost>
date:      Tue Feb 07 18:48:19 2012 +0000

description:
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@

diffstat:

 sys/dev/wsfb/genfb.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 852979496d9b -r 9f1d05ac1f2a sys/dev/wsfb/genfb.c
--- a/sys/dev/wsfb/genfb.c      Tue Feb 07 16:34:44 2012 +0000
+++ b/sys/dev/wsfb/genfb.c      Tue Feb 07 18:48:19 2012 +0000
@@ -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 <sys/cdefs.h>
-__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 <sys/param.h>
 #include <sys/systm.h>
@@ -510,7 +510,7 @@
        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;
 
 



Home | Main Index | Thread Index | Old Index