diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-06-05 18:00:12 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-06-05 18:00:12 +0000 |
commit | 9e3455a0505f569fad9386766805569e8f6f05aa (patch) | |
tree | 88712633e979ba23326d80dc8f7c00bccae0b667 /sys/arch/sparc64/dev | |
parent | 7475d02a4ac94ec669fdcc6943fc049ec1634675 (diff) |
Clear screen to clean up after X.
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r-- | sys/arch/sparc64/dev/gfxp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/gfxp.c b/sys/arch/sparc64/dev/gfxp.c index a04c4be6d24..ebe1275ab6c 100644 --- a/sys/arch/sparc64/dev/gfxp.c +++ b/sys/arch/sparc64/dev/gfxp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gfxp.c,v 1.5 2009/06/05 05:24:37 kettenis Exp $ */ +/* $OpenBSD: gfxp.c,v 1.6 2009/06/05 18:00:11 kettenis Exp $ */ /* * Copyright (c) 2009 Mark Kettenis. @@ -430,6 +430,7 @@ gfxp_init(struct gfxp_softc *sc) void gfxp_reinit(struct gfxp_softc *sc) { + struct rasops_info *ri = &sc->sc_sunfb.sf_ro; int i; /* XXX Restore. */ @@ -442,6 +443,11 @@ gfxp_reinit(struct gfxp_softc *sc) /* Clear cursor image. */ for (i = 0; i < 1024; i++) gfxp_indexed_write(sc, PM2V_CURSOR_PATTERN + i, 0x00); + + /* Clear screen. */ + ri = &sc->sc_sunfb.sf_ro; + gfxp_fillrect(sc, 0, 0, ri->ri_width, ri->ri_height, + ri->ri_devcmap[WSCOL_WHITE]); } void |