Hi tech@,

Use the CD bit (Cursor Disable) in the cursor start register to properly
disable hardware cursor.

>From NetBSD. See commit message [1] and diff [2] for more information.

Comments? OK?

[1] 
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ic/pcdisplay_subr.c?rev=1.35&content-type=text/x-cvsweb-markup
[2] 
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ic/pcdisplay_subr.c.diff?r1=1.34&r2=1.35&only_with_tag=MAIN

Index: pcdisplay_subr.c
===================================================================
RCS file: /cvs/src/sys/dev/ic/pcdisplay_subr.c,v
retrieving revision 1.12
diff -u -p -r1.12 pcdisplay_subr.c
--- pcdisplay_subr.c    30 May 2017 08:24:56 -0000      1.12
+++ pcdisplay_subr.c    30 May 2017 09:03:18 -0000
@@ -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
 }
 

Reply via email to