diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2002-09-23 18:13:40 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2002-09-23 18:13:40 +0000 |
commit | 9f57793bc6e166c2d6c5729c4cf132985f711c9c (patch) | |
tree | f3925ead21b40221616cc66be69a0bf5178668cb /sys/arch/sparc/dev/vigra.c | |
parent | 7f125e23dc888aa59d3858398f1d10c7022dd5c7 (diff) |
Get the wsdisplay capabilities from rasops, rather than attempting to
guess them at compile-time. Plus this makes cgtwelve a bit more clean.
ok fgs@ deraadt@
Diffstat (limited to 'sys/arch/sparc/dev/vigra.c')
-rw-r--r-- | sys/arch/sparc/dev/vigra.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/sparc/dev/vigra.c b/sys/arch/sparc/dev/vigra.c index a7d9685d456..7ab91b8fb8e 100644 --- a/sys/arch/sparc/dev/vigra.c +++ b/sys/arch/sparc/dev/vigra.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vigra.c,v 1.2 2002/09/09 22:15:16 miod Exp $ */ +/* $OpenBSD: vigra.c,v 1.3 2002/09/23 18:13:39 miod Exp $ */ /* * Copyright (c) 2002 Miodrag Vallat. All rights reserved. @@ -106,11 +106,6 @@ struct vigra_softc { struct wsscreen_descr vigra_stdscreen = { "std", - 0, 0, /* will be filled in */ - 0, - 0, 0, - WSSCREEN_UNDERLINE | WSSCREEN_HILIT | - WSSCREEN_REVERSE | WSSCREEN_WSCOLORS }; const struct wsscreen_descr *vigra_scrlist[] = { @@ -249,6 +244,7 @@ vigraattach(parent, self, args) fbwscons_init(&sc->sc_sunfb, isconsole && (sc->sc_sunfb.sf_width != 800)); + vigra_stdscreen.capabilities = sc->sc_sunfb.sf_ro.ri_caps; vigra_stdscreen.nrows = sc->sc_sunfb.sf_ro.ri_rows; vigra_stdscreen.ncols = sc->sc_sunfb.sf_ro.ri_cols; vigra_stdscreen.textops = &sc->sc_sunfb.sf_ro.ri_ops; |