Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci/voyager don't switch to 8 bit for WSDISPLAYIO_MO...



details:   https://anonhg.NetBSD.org/src/rev/1e3cd1478abc
branches:  trunk
changeset: 772181:1e3cd1478abc
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Dec 22 07:32:33 2011 +0000

description:
don't switch to 8 bit for WSDISPLAYIO_MODE_EMUL if VOYAGERFB_ANTIALIAS
is defined

diffstat:

 sys/dev/pci/voyager/voyagerfb.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 73ddd7997d58 -r 1e3cd1478abc sys/dev/pci/voyager/voyagerfb.c
--- a/sys/dev/pci/voyager/voyagerfb.c   Thu Dec 22 05:08:05 2011 +0000
+++ b/sys/dev/pci/voyager/voyagerfb.c   Thu Dec 22 07:32:33 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: voyagerfb.c,v 1.10 2011/12/22 05:05:24 macallan Exp $  */
+/*     $NetBSD: voyagerfb.c,v 1.11 2011/12/22 07:32:33 macallan Exp $  */
 
 /*
  * Copyright (c) 2009, 2011 Michael Lorenz
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: voyagerfb.c,v 1.10 2011/12/22 05:05:24 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: voyagerfb.c,v 1.11 2011/12/22 07:32:33 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -387,7 +387,11 @@
                if (new_mode != sc->sc_mode) {
                        sc->sc_mode = new_mode;
                        if(new_mode == WSDISPLAYIO_MODE_EMUL) {
+#ifdef VOYAGERFB_ANTIALIAS
+                               sc->sc_depth = 32;
+#else
                                sc->sc_depth = 8;
+#endif
                                voyagerfb_init(sc);
                                voyagerfb_restore_palette(sc);
                                vcons_redraw_screen(ms);



Home | Main Index | Thread Index | Old Index