aboutsummaryrefslogtreecommitdiff
path: root/sys/isa/syscons.c
diff options
context:
space:
mode:
authorSøren Schmidt <sos@FreeBSD.org>1997-01-19 17:34:14 +0000
committerSøren Schmidt <sos@FreeBSD.org>1997-01-19 17:34:14 +0000
commitcf35b775cb2395bf02641b5e447752f435ed7439 (patch)
tree96cc02c134635805399cb92de2707c31f846f359 /sys/isa/syscons.c
parent9efdc393bc8edc0fec9712ea8fe5cbec3632c10d (diff)
Oops, the position of the savefont code was wrong, cur_console
wasn't set yet.
Notes
Notes: svn path=/head/; revision=21875
Diffstat (limited to 'sys/isa/syscons.c')
-rw-r--r--sys/isa/syscons.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c
index bf4dc20367e8..50e2e41bf27d 100644
--- a/sys/isa/syscons.c
+++ b/sys/isa/syscons.c
@@ -2418,13 +2418,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;
console[0]->xpos = hw_cursor % COL;
@@ -2443,6 +2436,13 @@ scinit(void)
scr_map[i] = scr_rmap[i] = i;
}
+ /* 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
@@ -3454,10 +3454,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();
@@ -3615,8 +3614,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();