From a7a5cd8399b7b2b03a106cb9a68351ea2e2609fa Mon Sep 17 00:00:00 2001 From: scottr Date: Sun, 22 Oct 2000 05:05:39 +0000 Subject: [PATCH] Replace the call to macfb_init() when attaching a non-console fb device with a call to macfb_clear(). [The purpose of macfb_init() is almost exclusively to initialize the raster console blitter. We really, really do not want to do this unless we are actually initializing the console device, else we'll give rcons the attributes of the last-seen fb device. These will not necessarily correspond to the attributes of the actual console device!] --- sys/arch/mac68k/dev/macfb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/mac68k/dev/macfb.c b/sys/arch/mac68k/dev/macfb.c index 88d114a89bed..c15ccd70cb2c 100644 --- a/sys/arch/mac68k/dev/macfb.c +++ b/sys/arch/mac68k/dev/macfb.c @@ -1,4 +1,4 @@ -/* $NetBSD: macfb.c,v 1.4 2000/06/26 04:55:47 simonb Exp $ */ +/* $NetBSD: macfb.c,v 1.5 2000/10/22 05:05:39 scottr Exp $ */ /* * Copyright (c) 1998 Matt DeBergalis * All rights reserved. @@ -234,7 +234,7 @@ macfb_attach(parent, self, aux) sc->sc_dc->dc_offset = gm->fboff; - macfb_init(sc->sc_dc); + macfb_clear(sc->sc_dc); sc->nscreens = 1; }