diff options
author | 1997-03-14 14:16:52 +0000 | |
---|---|---|
committer | 1997-03-14 14:16:52 +0000 | |
commit | 1cc3ece9c71324040b00dedc0c2d80c0ea508b40 (patch) | |
tree | bb19c7a39f8fbea878ab4fac46e29cbed8c794b1 | |
parent | Use macro to truncate page. (diff) | |
download | wireguard-openbsd-1cc3ece9c71324040b00dedc0c2d80c0ea508b40.tar.xz wireguard-openbsd-1cc3ece9c71324040b00dedc0c2d80c0ea508b40.zip |
Possible fix for SE/30 internal video problems. Thanks to Denny Gentry for
figuring out what was going wrong there.
-rw-r--r-- | sys/arch/mac68k/dev/grf_mv.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/mac68k/dev/grf_mv.c b/sys/arch/mac68k/dev/grf_mv.c index bfdc7f581e1..0f4a0110010 100644 --- a/sys/arch/mac68k/dev/grf_mv.c +++ b/sys/arch/mac68k/dev/grf_mv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grf_mv.c,v 1.8 1997/03/12 13:36:57 briggs Exp $ */ +/* $OpenBSD: grf_mv.c,v 1.9 1997/03/14 14:16:52 briggs Exp $ */ /* $NetBSD: grf_mv.c,v 1.17 1997/02/24 06:20:06 scottr Exp $ */ /* @@ -248,8 +248,9 @@ grfmv_attach(parent, self, aux) gm = &sc->curr_mode; gm->mode_id = mode; - gm->fbbase = (caddr_t) (sc->sc_slot.virtual_base + image.offset); - gm->fboff = image.offset; + gm->fbbase = (caddr_t) (sc->sc_slot.virtual_base + + mac68k_trunc_page(image.offset)); + gm->fboff = image.offset & PGOFSET; gm->rowbytes = image.rowbytes; gm->width = image.right - image.left; gm->height = image.bottom - image.top; |