If the vga driver isn't present in the kernel and PCDISPLAY_SOFTCURSOR
is set, then pcdisplay_cursor() should disable the hardware cursor first time it is called.
This commit is contained in:
parent
cd20e6eb44
commit
801b079e37
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pcdisplay_subr.c,v 1.9 1999/09/29 17:26:06 ad Exp $ */
|
||||
/* $NetBSD: pcdisplay_subr.c,v 1.10 1999/12/06 10:04:50 ad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -40,6 +40,8 @@
|
|||
|
||||
#include <dev/wscons/wsdisplayvar.h>
|
||||
|
||||
#include "vga.h"
|
||||
|
||||
void
|
||||
pcdisplay_cursor(id, on, row, col)
|
||||
void *id;
|
||||
|
@ -50,6 +52,19 @@ pcdisplay_cursor(id, on, row, col)
|
|||
bus_space_tag_t memt = scr->hdl->ph_memt;
|
||||
bus_space_handle_t memh = scr->hdl->ph_memh;
|
||||
int off;
|
||||
#if NVGA == 0
|
||||
static int hwoff;
|
||||
|
||||
/*
|
||||
* If the VGA driver hasn't been included in the kernel, we
|
||||
* need to turn the hardware cursor off here.
|
||||
*/
|
||||
if (hwoff == 0) {
|
||||
pcdisplay_6845_write(scr->hdl, cursorh, 0x10);
|
||||
pcdisplay_6845_write(scr->hdl, cursorl, 0x10);
|
||||
hwoff = 1;
|
||||
}
|
||||
#endif /* NVGA == 0 */
|
||||
|
||||
/* Remove old cursor image */
|
||||
if (scr->cursoron) {
|
||||
|
|
Loading…
Reference in New Issue