Restore color palette format if we reset video mode.

This commit is contained in:
Jung-uk Kim 2009-11-04 01:00:28 +00:00
parent 7ac3e951e3
commit 421cd2f2fb

View file

@ -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);
}