From 7aa571fe7e89d4785191963d3e06bc8b7641fbb3 Mon Sep 17 00:00:00 2001 From: KATO Takenori Date: Mon, 20 Jan 1997 12:26:04 +0000 Subject: [PATCH] Synchronize with sys/i386/isa/syscons.c revision 1.197. --- sys/pc98/pc98/syscons.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/sys/pc98/pc98/syscons.c b/sys/pc98/pc98/syscons.c index d4c7ed75495e..9ae3d532458a 100644 --- a/sys/pc98/pc98/syscons.c +++ b/sys/pc98/pc98/syscons.c @@ -3197,13 +3197,6 @@ scinit(void) bcopyw(Crtat, sc_buffer, console[0]->xsize * console[0]->ysize * sizeof(u_short)); - /* Save font and palette if VGA */ - if (crtc_vga) { - copy_font(SAVE, FONT_16, font_16); - fonts_loaded = FONT_16; - save_palette(); - } - console[0]->scr_buf = console[0]->mouse_pos = sc_buffer; console[0]->cursor_pos = console[0]->cursor_oldpos = sc_buffer + hw_cursor; #ifdef PC98 @@ -4426,10 +4419,9 @@ 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; - - /* wait for vertical retrace to avoid jitter on some videocards */ - while (!(inb(crtc_addr+6) & 0x08)) /* idle */ ; - +#if 1 + while (!(inb(crtc_addr+6) & 0x08)) /* wait for vertical retrace */ ; +#endif set_font_mode(); bcopy(cursor, (char *)pa_to_va(address) + DEAD_CHAR * 32, 32); set_normal_mode(); @@ -4597,8 +4589,9 @@ draw_mouse_image(scr_stat *scp) scp->mouse_oldpos = scp->mouse_pos; /* wait for vertical retrace to avoid jitter on some videocards */ +#if 1 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(); @@ -4718,6 +4711,13 @@ do_bell(scr_stat *scp, int pitch, int duration) sysbeep(pitch, duration); } + /* Save font and palette if VGA */ + if (crtc_vga) { + copy_font(SAVE, FONT_16, font_16); + fonts_loaded = FONT_16; + save_palette(); + } + #ifdef SC_SPLASH_SCREEN /* * Now put up a graphics image, and maybe cycle a