From d2a98c47a0b482823e0595c246fff0c0e998ffc8 Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Sat, 18 Sep 1999 22:54:49 +0000 Subject: fix an off-by-one error --- sys/arch/i386/isa/pcvt/pcvt_ext.c | 4 ++-- sys/arch/i386/isa/pcvt/pcvt_sup.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/i386/isa/pcvt/pcvt_ext.c b/sys/arch/i386/isa/pcvt/pcvt_ext.c index bb4322d4848..44591d70bee 100644 --- a/sys/arch/i386/isa/pcvt/pcvt_ext.c +++ b/sys/arch/i386/isa/pcvt/pcvt_ext.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcvt_ext.c,v 1.19 1999/09/08 12:56:42 aaron Exp $ */ +/* $OpenBSD: pcvt_ext.c,v 1.20 1999/09/18 22:54:48 aaron Exp $ */ /* * Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch. @@ -2560,7 +2560,7 @@ vgapage(int new_screen) SCROLLBACK_PAGES); bcopy(vsp->Crtat, vsp->Scrollback, vsp->screen_rows * vsp->maxcol * CHR); - vsp->scr_offset = vsp->row - 1; + vsp->scr_offset = vsp->row; } } } diff --git a/sys/arch/i386/isa/pcvt/pcvt_sup.c b/sys/arch/i386/isa/pcvt/pcvt_sup.c index 8cc16c6cd0a..3687707176e 100644 --- a/sys/arch/i386/isa/pcvt/pcvt_sup.c +++ b/sys/arch/i386/isa/pcvt/pcvt_sup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcvt_sup.c,v 1.7 1999/09/14 18:21:41 aaron Exp $ */ +/* $OpenBSD: pcvt_sup.c,v 1.8 1999/09/18 22:54:48 aaron Exp $ */ /* * Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch. @@ -547,7 +547,7 @@ vgasetfontattr(struct vgafontattr *data) } bcopy(vsp->Crtat, vsp->Scrollback, vsp->screen_rows * vsp->maxcol * CHR); - vsp->scr_offset = vsp->row - 1; + vsp->scr_offset = vsp->row; } } switch_screen(current_video_screen, 0, 0); -- cgit v1.2.3