From: fcambus Date: Tue, 30 May 2017 21:42:54 +0000 (+0000) Subject: Use the CD bit (Cursor Disable) in the cursor start register to properly X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b1ce05ae5c09ff78f6eaef55c79df1f62a49c80a;p=openbsd Use the CD bit (Cursor Disable) in the cursor start register to properly disable hardware cursor. From NetBSD. OK deraadt@ --- 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 }