Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/luna68k/dev Correct size of framebuffer; page offse...



details:   https://anonhg.NetBSD.org/src/rev/cc079a3bea13
branches:  trunk
changeset: 464069:cc079a3bea13
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Sep 22 06:06:01 2019 +0000

description:
Correct size of framebuffer; page offset appears only once,
not every color depths.

Pointed out by Araki Ken. Thanks!

diffstat:

 sys/arch/luna68k/dev/lunafb.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r d1b7f9b6825a -r cc079a3bea13 sys/arch/luna68k/dev/lunafb.c
--- a/sys/arch/luna68k/dev/lunafb.c     Sun Sep 22 05:49:16 2019 +0000
+++ b/sys/arch/luna68k/dev/lunafb.c     Sun Sep 22 06:06:01 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lunafb.c,v 1.40 2019/07/23 14:34:11 rin Exp $ */
+/* $NetBSD: lunafb.c,v 1.41 2019/09/22 06:06:01 rin Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: lunafb.c,v 1.40 2019/07/23 14:34:11 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lunafb.c,v 1.41 2019/09/22 06:06:01 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -308,8 +308,8 @@
 #endif
        case WSDISPLAYIO_MODE_DUMBFB:
                if (offset >= 0 &&
-                   offset < (m68k_page_offset(OMFB_FB_RADDR) +
-                   dc->dc_rowbytes * dc->dc_ht) * dc->dc_depth)
+                   offset < m68k_page_offset(OMFB_FB_RADDR) +
+                   dc->dc_rowbytes * dc->dc_ht * dc->dc_depth)
                        cookie = m68k_btop(m68k_trunc_page(OMFB_FB_RADDR) +
                            offset);
                break;



Home | Main Index | Thread Index | Old Index