Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/stand/prekern When scrolling the screen don't...



details:   https://anonhg.NetBSD.org/src/rev/4591a16beca3
branches:  trunk
changeset: 840343:4591a16beca3
user:      maxv <maxv%NetBSD.org@localhost>
date:      Wed Apr 03 19:14:25 2019 +0000

description:
When scrolling the screen don't forget to update the last line. Whatever,
there is no case where the screen scrolls actually.

diffstat:

 sys/arch/amd64/stand/prekern/console.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 116c9686e135 -r 4591a16beca3 sys/arch/amd64/stand/prekern/console.c
--- a/sys/arch/amd64/stand/prekern/console.c    Wed Apr 03 19:10:58 2019 +0000
+++ b/sys/arch/amd64/stand/prekern/console.c    Wed Apr 03 19:14:25 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: console.c,v 1.3 2017/11/17 07:07:52 maxv Exp $ */
+/*     $NetBSD: console.c,v 1.4 2019/04/03 19:14:25 maxv Exp $ */
 
 /*
  * Copyright (c) 2017 The NetBSD Foundation, Inc. All rights reserved.
@@ -61,7 +61,7 @@
        memset(&cons_buffer[0] + (CONS_WID * 2) * (CONS_HEI-1), 0,
            (CONS_WID * 2));
        cons_y--;
-       memcpy(cons_start, &cons_buffer[0], (CONS_WID * 2) * (CONS_HEI-1));
+       memcpy(cons_start, &cons_buffer[0], CONS_WID * 2 * CONS_HEI);
 }
 
 void print_ext(int color, char *buf)



Home | Main Index | Thread Index | Old Index