From b1ce05ae5c09ff78f6eaef55c79df1f62a49c80a Mon Sep 17 00:00:00 2001 From: fcambus Date: Tue, 30 May 2017 21:42:54 +0000 Subject: [PATCH] Use the CD bit (Cursor Disable) in the cursor start register to properly disable hardware cursor. From NetBSD. OK deraadt@ --- sys/dev/ic/pcdisplay_subr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ic/pcdisplay_subr.c b/sys/dev/ic/pcdisplay_subr.c index 730f994692e..8cd65fb2649 100644 --- a/sys/dev/ic/pcdisplay_subr.c +++ b/sys/dev/ic/pcdisplay_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcdisplay_subr.c,v 1.12 2017/05/30 08:24:56 fcambus Exp $ */ +/* $OpenBSD: pcdisplay_subr.c,v 1.13 2017/05/30 21:42:54 fcambus Exp $ */ /* $NetBSD: pcdisplay_subr.c,v 1.16 2000/06/08 07:01:19 cgd Exp $ */ /* @@ -44,8 +44,8 @@ void pcdisplay_cursor_reset(struct pcdisplayscreen *scr) { #ifdef PCDISPLAY_SOFTCURSOR - pcdisplay_6845_write(scr->hdl, curstart, 0x10); - pcdisplay_6845_write(scr->hdl, curend, 0x10); + pcdisplay_6845_write(scr->hdl, curstart, 0x20); + pcdisplay_6845_write(scr->hdl, curend, 0x00); #endif } -- 2.20.1