Only update the cursor state if it's enabled.

This commit is contained in:
mycroft 1999-11-03 15:55:27 +00:00
parent b2eeefd2b9
commit d2b362b685
2 changed files with 14 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vga.c,v 1.20 1999/09/29 17:29:24 ad Exp $ */
/* $NetBSD: vga.c,v 1.21 1999/11/03 15:55:27 mycroft Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@ -878,8 +878,9 @@ vga_copyrows(id, srcrow, dstrow, nrows)
#ifdef PCDISPLAY_SOFTCURSOR
int cursoron = scr->pcs.cursoron;
pcdisplay_cursor(&scr->pcs, 0, scr->pcs.vc_crow,
scr->pcs.vc_ccol);
if (cursoron)
pcdisplay_cursor(&scr->pcs, 0,
scr->pcs.vc_crow, scr->pcs.vc_ccol);
#endif
/* scroll up whole screen */
if ((scr->pcs.dispoffset + srcrow * ncols * 2)
@ -897,8 +898,9 @@ vga_copyrows(id, srcrow, dstrow, nrows)
vga_6845_write(&scr->cfg->hdl, startadrl,
scr->pcs.dispoffset >> 1);
#ifdef PCDISPLAY_SOFTCURSOR
pcdisplay_cursor(&scr->pcs, cursoron,
scr->pcs.vc_crow, scr->pcs.vc_ccol);
if (cursoron)
pcdisplay_cursor(&scr->pcs, 1,
scr->pcs.vc_crow, scr->pcs.vc_ccol);
#endif
} else {
bus_space_copy_region_2(memt, memh,

View File

@ -1,4 +1,4 @@
/* $NetBSD: wsemul_vt100.c,v 1.11 1999/03/10 19:54:52 drochner Exp $ */
/* $NetBSD: wsemul_vt100.c,v 1.12 1999/11/03 15:55:29 mycroft Exp $ */
/*
* Copyright (c) 1998
@ -958,9 +958,9 @@ wsemul_vt100_output(cookie, data, count, kernel)
panic("wsemul_vt100_output: kernel output, not console");
#endif
/* XXX */
(*edp->emulops->cursor)(edp->emulcookie, 0,
edp->crow, edp->ccol << edp->dw);
if (edp->flags & VTFL_CURSORON)
(*edp->emulops->cursor)(edp->emulcookie, 0,
edp->crow, edp->ccol << edp->dw);
for (; count > 0; data++, count--) {
if ((*data & 0x7f) < 0x20) {
wsemul_vt100_output_c0c1(edp, *data, kernel);
@ -976,7 +976,7 @@ wsemul_vt100_output(cookie, data, count, kernel)
#endif
edp->state = vt100_output[edp->state - 1](edp, *data);
}
/* XXX */
(*edp->emulops->cursor)(edp->emulcookie, edp->flags & VTFL_CURSORON,
edp->crow, edp->ccol << edp->dw);
if (edp->flags & VTFL_CURSORON)
(*edp->emulops->cursor)(edp->emulcookie, 1,
edp->crow, edp->ccol << edp->dw);
}