summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/vigra.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-11-06 21:06:23 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-11-06 21:06:23 +0000
commit3db638110f445fdee0af026ba42b338baa48ae85 (patch)
treecdce3c99d6438633abf2f3fb6fda1f5cf804395e /sys/arch/sparc/dev/vigra.c
parent60735805896012b6000a99f7de1678fd7cbfa3b6 (diff)
- always initialize colormaps, even if the frame buffer is non console; this
helps if the ramdac does not get initialized (idea from jason@) - only register a shutdown hook for the frame buffers which need it, if this is the console frame buffer. Otherwise this is just a waste of time.
Diffstat (limited to 'sys/arch/sparc/dev/vigra.c')
-rw-r--r--sys/arch/sparc/dev/vigra.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/vigra.c b/sys/arch/sparc/dev/vigra.c
index 631e98eaa64..822113aee22 100644
--- a/sys/arch/sparc/dev/vigra.c
+++ b/sys/arch/sparc/dev/vigra.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vigra.c,v 1.4 2002/10/12 01:09:43 krw Exp $ */
+/* $OpenBSD: vigra.c,v 1.5 2002/11/06 21:06:20 miod Exp $ */
/*
* Copyright (c) 2002 Miodrag Vallat. All rights reserved.
@@ -243,6 +243,7 @@ vigraattach(parent, self, args)
*/
fbwscons_init(&sc->sc_sunfb,
isconsole && (sc->sc_sunfb.sf_width != 800));
+ fbwscons_setcolormap(&sc->sc_sunfb, vigra_setcolor);
vigra_stdscreen.capabilities = sc->sc_sunfb.sf_ro.ri_caps;
vigra_stdscreen.nrows = sc->sc_sunfb.sf_ro.ri_rows;
@@ -263,7 +264,7 @@ vigraattach(parent, self, args)
}
fbwscons_console_init(&sc->sc_sunfb, &vigra_stdscreen, row,
- vigra_setcolor, vigra_burner);
+ vigra_burner);
}
sbus_establish(&sc->sc_sd, &sc->sc_sunfb.sf_dev);