diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-07-30 19:48:16 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-07-30 19:48:16 +0000 |
commit | 68e70d4e6c7630c0653291034278dfdd3ce90e27 (patch) | |
tree | ad96054fc56f1151f15db40f6221c5c2fbe7b5e7 /sys/arch/sparc64/dev/creator.c | |
parent | 634757d8ac66687f621809157b4c79a82ac370c0 (diff) |
allow cf_flags to determine whether console acceleration should be used (defaults to yes)
Diffstat (limited to 'sys/arch/sparc64/dev/creator.c')
-rw-r--r-- | sys/arch/sparc64/dev/creator.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/arch/sparc64/dev/creator.c b/sys/arch/sparc64/dev/creator.c index 71074217fde..6b912fe8528 100644 --- a/sys/arch/sparc64/dev/creator.c +++ b/sys/arch/sparc64/dev/creator.c @@ -1,4 +1,4 @@ -/* $OpenBSD: creator.c,v 1.19 2002/07/29 06:21:45 jason Exp $ */ +/* $OpenBSD: creator.c,v 1.20 2002/07/30 19:48:15 jason Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -145,11 +145,14 @@ creator_attach(struct creator_softc *sc) rasops_init(&sc->sc_rasops, a2int(getpropstring(optionsnode, "screen-#rows"), 34), a2int(getpropstring(optionsnode, "screen-#columns"), 80)); - sc->sc_rasops.ri_hw = sc; - sc->sc_rasops.ri_ops.eraserows = creator_ras_eraserows; - sc->sc_rasops.ri_ops.erasecols = creator_ras_erasecols; - sc->sc_rasops.ri_ops.copyrows = creator_ras_copyrows; - creator_ras_init(sc); + + if ((sc->sc_dv.dv_cfdata->cf_flags & CREATOR_CFFLAG_NOACCEL) == 0) { + sc->sc_rasops.ri_hw = sc; + sc->sc_rasops.ri_ops.eraserows = creator_ras_eraserows; + sc->sc_rasops.ri_ops.erasecols = creator_ras_erasecols; + sc->sc_rasops.ri_ops.copyrows = creator_ras_copyrows; + creator_ras_init(sc); + } creator_stdscreen.nrows = sc->sc_rasops.ri_rows; creator_stdscreen.ncols = sc->sc_rasops.ri_cols; |