summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>1999-09-18 22:54:49 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>1999-09-18 22:54:49 +0000
commitd2a98c47a0b482823e0595c246fff0c0e998ffc8 (patch)
treeb41733995c093781a4aac944349dd27a6697ba75 /sys/arch
parent1ab1979a901376d9a9c400d4b503c4a385048d93 (diff)
fix an off-by-one error
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/isa/pcvt/pcvt_ext.c4
-rw-r--r--sys/arch/i386/isa/pcvt/pcvt_sup.c4
2 files changed, 4 insertions, 4 deletions
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);