summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1997-01-20 12:26:04 +0000
committerkato <kato@FreeBSD.org>1997-01-20 12:26:04 +0000
commit4f7f8be8ac52985f3938c72203cfb77575bbcb4b (patch)
tree42cb73287a6f55e82360c2e89b3542c8718dd9cf /sys
parent351ecc8357fc2175b700189b267ad22076d041f7 (diff)
downloadFreeBSD-src-4f7f8be8ac52985f3938c72203cfb77575bbcb4b.zip
FreeBSD-src-4f7f8be8ac52985f3938c72203cfb77575bbcb4b.tar.gz
Synchronize with sys/i386/isa/syscons.c revision 1.197.
Diffstat (limited to 'sys')
-rw-r--r--sys/pc98/pc98/syscons.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/pc98/pc98/syscons.c b/sys/pc98/pc98/syscons.c
index d4c7ed7..9ae3d53 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
OpenPOWER on IntegriCloud