From 421cd2f2fbf74396056775a94394cdff1728ed39 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Wed, 4 Nov 2009 01:00:28 +0000 Subject: [PATCH] Restore color palette format if we reset video mode. --- sys/dev/fb/vesa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/fb/vesa.c b/sys/dev/fb/vesa.c index c2521c5ad48..6d3ffcc172b 100644 --- a/sys/dev/fb/vesa.c +++ b/sys/dev/fb/vesa.c @@ -1470,6 +1470,8 @@ vesa_load_state(video_adapter_t *adp, void *p) (flags & V_INFO_LINEAR) != 0) mode |= 0x4000; (void)vesa_bios_set_mode(mode); + if ((vesa_adp_info->v_flags & V_DAC8) != 0) + (void)vesa_bios_set_dac(8); (void)(*vidsw[adp->va_index]->set_hw_cursor)(adp, -1, -1); }