Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/newsmips/dev Correct VRAM size.
details: https://anonhg.NetBSD.org/src/rev/68a24ee51f69
branches: trunk
changeset: 499197:68a24ee51f69
user: tsubai <tsubai%NetBSD.org@localhost>
date: Tue Nov 14 15:32:03 2000 +0000
description:
Correct VRAM size.
diffstat:
sys/arch/newsmips/dev/fb.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 21a8fd2810cf -r 68a24ee51f69 sys/arch/newsmips/dev/fb.c
--- a/sys/arch/newsmips/dev/fb.c Tue Nov 14 13:57:16 2000 +0000
+++ b/sys/arch/newsmips/dev/fb.c Tue Nov 14 15:32:03 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fb.c,v 1.5 2000/11/13 16:48:42 tsubai Exp $ */
+/* $NetBSD: fb.c,v 1.6 2000/11/14 15:32:03 tsubai Exp $ */
/*-
* Copyright (c) 2000 Tsubai Masanari. All rights reserved.
@@ -284,7 +284,7 @@
struct fb_devconfig *dc = sc->sc_dc;
struct rasops_info *ri = &dc->dc_ri;
- if (offset >= (ri->ri_stride * ri->ri_height) || offset < 0)
+ if (offset >= 2048 * 2048 / 8 || offset < 0)
return -1;
return mips_btop((int)dc->dc_fbbase + offset);
Home |
Main Index |
Thread Index |
Old Index