summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-02-12 00:04:24 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-02-12 00:04:24 +0000
commit12cd95e30bb3f703a6d9b8f9154cfefb1bf035a7 (patch)
treed116a3cf516cd1960a28471e461d62fdbbcb6807 /sys/arch
parent9fc05283efd34f34622e18370a64e8087bfb82f6 (diff)
Don't cause the screen border to be black; but we have to clear the whole
screen until console uses a low-depth plane; and if I could remember who to thank for the Xvideo board I got via Wim, things would be even better.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc/dev/tvtwo.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/sys/arch/sparc/dev/tvtwo.c b/sys/arch/sparc/dev/tvtwo.c
index 01060ec0261..1b9b628507a 100644
--- a/sys/arch/sparc/dev/tvtwo.c
+++ b/sys/arch/sparc/dev/tvtwo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tvtwo.c,v 1.8 2005/03/23 17:16:34 miod Exp $ */
+/* $OpenBSD: tvtwo.c,v 1.9 2006/02/12 00:04:21 miod Exp $ */
/*
* Copyright (c) 2003, Miodrag Vallat.
* All rights reserved.
@@ -237,18 +237,24 @@ tvtwoattach(struct device *parent, struct device *self, void *args)
/* Initialize a direct color map. */
tvtwo_initcmap(sc);
- sc->sc_sunfb.sf_ro.ri_hw = sc;
- fbwscons_init(&sc->sc_sunfb, isconsole ? 0 : RI_CLEAR);
+ /*
+ * Clear display. We can't pass RI_CLEAR to fbwscons_init
+ * below and have rasops do it for us as we want a white background.
+ */
+ memset(sc->sc_sunfb.sf_ro.ri_bits, 0xff, sc->sc_sunfb.sf_fbsize);
- printf("%s: %dx%d\n", self->dv_xname,
- sc->sc_sunfb.sf_width, sc->sc_sunfb.sf_height);
+ sc->sc_sunfb.sf_ro.ri_hw = sc;
+ fbwscons_init(&sc->sc_sunfb, 0);
if (isconsole) {
- fbwscons_console_init(&sc->sc_sunfb, -1);
+ fbwscons_console_init(&sc->sc_sunfb, 0);
}
sbus_establish(&sc->sc_sd, &sc->sc_sunfb.sf_dev);
+ printf("%s: %dx%d\n", self->dv_xname,
+ sc->sc_sunfb.sf_width, sc->sc_sunfb.sf_height);
+
fbwscons_attach(&sc->sc_sunfb, &tvtwo_accessops, isconsole);
}