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!]
This commit is contained in:
scottr 2000-10-22 05:05:39 +00:00
parent 0a481d850d
commit a7a5cd8399

View File

@ -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;
}