CVSROOT: /cvs Module name: src Changes by: j...@cvs.openbsd.org 2020/05/16 05:07:54
Modified files: sys/dev/ic : vga.c Log message: Don't attempt to reset the state of the flip-flop associated with the vga attribute controller index or set the enable/'palette address source' bit when saving and restoring 256 colour vga palette with 0x3c6-0x3c9 as this does not touch the attribute registers. When this code was ported from FreeBSD in vga.c rev 1.48 the flip-flop reset parts were mistakenly made to read 0x3ca instead of 0x3da. Fixes a problem with VirtualBox where the text mode background was a dim red colour instead of black after VT switch. Problem reported by and patch from John Carmack. ok matthieu@ who notes this also fixes a similiar problem with a KVM / virt-manager virtual machine.