Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sbus fix tpyo - now the glyph cache can actually wor...
details: https://anonhg.NetBSD.org/src/rev/0d771dc0f72c
branches: trunk
changeset: 376676:0d771dc0f72c
user: macallan <macallan%NetBSD.org@localhost>
date: Wed Jun 28 08:11:52 2023 +0000
description:
fix tpyo - now the glyph cache can actually work...
diffstat:
sys/dev/sbus/mgx.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3e11026174ee -r 0d771dc0f72c sys/dev/sbus/mgx.c
--- a/sys/dev/sbus/mgx.c Wed Jun 28 06:15:42 2023 +0000
+++ b/sys/dev/sbus/mgx.c Wed Jun 28 08:11:52 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mgx.c,v 1.20 2021/11/11 19:37:30 macallan Exp $ */
+/* $NetBSD: mgx.c,v 1.21 2023/06/28 08:11:52 macallan Exp $ */
/*-
* Copyright (c) 2014 Michael Lorenz
@@ -29,7 +29,7 @@
/* a console driver for the SSB 4096V-MGX graphics card */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mgx.c,v 1.20 2021/11/11 19:37:30 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mgx.c,v 1.21 2023/06/28 08:11:52 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -342,7 +342,7 @@ mgx_attach(device_t parent, device_t sel
* leave some room between visible screen and glyph cache for upload
* buffers used by putchar_mono()
*/
- bsize = (32 * 1024 * sc->sc_stride - 1) / sc->sc_stride;
+ bsize = (32 * 1024 + sc->sc_stride - 1) / sc->sc_stride;
glyphcache_init(&sc->sc_gc,
sc->sc_height + bsize,
(0x400000 / sc->sc_stride) - (sc->sc_height + bsize),
Home |
Main Index |
Thread Index |
Old Index