Fix splashscreen on resolutions where text is centered.

This commit was approved by macallan@
This commit is contained in:
nat 2015-06-01 20:47:59 +00:00
parent 23a95653af
commit 62dd0696ca
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: genfb.c,v 1.57 2015/03/20 21:55:46 jmcneill Exp $ */
/* $NetBSD: genfb.c,v 1.58 2015/06/01 20:47:59 nat Exp $ */
/*-
* Copyright (c) 2007 Michael Lorenz
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.57 2015/03/20 21:55:46 jmcneill Exp $");
__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.58 2015/06/01 20:47:59 nat Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -305,7 +305,7 @@ genfb_attach(struct genfb_softc *sc, struct genfb_ops *ops)
genfb_restore_palette(sc);
sc->sc_splash.si_depth = sc->sc_depth;
sc->sc_splash.si_bits = sc->sc_console_screen.scr_ri.ri_bits;
sc->sc_splash.si_bits = sc->sc_console_screen.scr_ri.ri_origbits;
sc->sc_splash.si_hwbits = sc->sc_fbaddr;
sc->sc_splash.si_width = sc->sc_width;
sc->sc_splash.si_height = sc->sc_height;