diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 1997-01-18 15:53:48 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 1997-01-18 15:53:48 +0000 |
| commit | 6b2c8fd9c34b0a8f444f5341b7b4da9d79e5ac2e (patch) | |
| tree | 09a4a74bb6f506e8bd34b7028f48c635d6116e5d /sys/dev/syscons | |
| parent | c59a3dbd01cd61d8601e19c68ba5eece010c75a8 (diff) | |
Notes
Diffstat (limited to 'sys/dev/syscons')
| -rw-r--r-- | sys/dev/syscons/syscons.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 50a3c34fe67c6..bf4dc20367e8e 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -3454,9 +3454,10 @@ set_destructive_cursor(scr_stat *scp) if ((i >= scp->cursor_start && i <= scp->cursor_end) || (scp->cursor_start >= scp->font_size && i == scp->font_size - 1)) cursor[i] |= 0xff; -#if 0 - while (!(inb(crtc_addr+6) & 0x08)) /* wait for vertical retrace */ ; -#endif + + /* wait for vertical retrace to avoid jitter on some videocards */ + while (!(inb(crtc_addr+6) & 0x08)) /* idle */ ; + set_font_mode(); bcopy(cursor, (char *)pa_to_va(address) + DEAD_CHAR * 32, 32); set_normal_mode(); @@ -3614,9 +3615,8 @@ draw_mouse_image(scr_stat *scp) scp->mouse_oldpos = scp->mouse_pos; /* wait for vertical retrace to avoid jitter on some videocards */ -#if 0 while (!(inb(crtc_addr+6) & 0x08)) /* idle */ ; -#endif + set_font_mode(); bcopy(scp->mouse_cursor, (char *)pa_to_va(address) + 0xd0 * 32, 128); set_normal_mode(); |
