summaryrefslogtreecommitdiff
path: root/sys/dev/isa/ega.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-09-29 19:46:05 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-09-29 19:46:05 +0000
commit45891e1595258793ffd3dbfddb1e1d86d1b65b75 (patch)
treec51bf3016916c9de109fcd6b8cedf41854c441fd /sys/dev/isa/ega.c
parent7b4c2af499f84d6e248f4a1c3f4e525726251ca8 (diff)
If option PCDISPLAY_SOFTCURSOR, force the hardware cursor off every time
we switch vt, so that the hardware cursor does not reappear after starting X11, and switching to a text vt. Spotted by jmc@
Diffstat (limited to 'sys/dev/isa/ega.c')
-rw-r--r--sys/dev/isa/ega.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/isa/ega.c b/sys/dev/isa/ega.c
index fbfc9e92075..f0c4bb7448b 100644
--- a/sys/dev/isa/ega.c
+++ b/sys/dev/isa/ega.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ega.c,v 1.7 2004/12/26 21:22:13 miod Exp $ */
+/* $OpenBSD: ega.c,v 1.8 2006/09/29 19:46:04 miod Exp $ */
/* $NetBSD: ega.c,v 1.4.4.1 2000/06/30 16:27:47 simonb Exp $ */
/*
@@ -768,6 +768,7 @@ ega_doswitch(vc)
vc->active = scr;
+ pcdisplay_cursor_reset(&scr->pcs);
pcdisplay_cursor(&scr->pcs, scr->pcs.cursoron,
scr->pcs.vc_crow, scr->pcs.vc_ccol);