mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00

Graphics Controller bitmask into account. Add code to switch to this slower version if the graphics controller bitmask register is changed while running in 320x200x256 mode. This fixes two parts of Impact Studio's "Legend" demo that rely on the GC bitmask and VGA DAC pel mask registers to do "bitplane flipping" in 320x200x256 VGA mode. Prior to this fix, those two parts failed to render properly and would instead draw a flickering ball on the screen instead of the intended 3D rotating object. Note that most demos and games do not use the bitmask register in 320x200x256 mode (not even mode-X) and abusing it that way is very unusual, though apparently supported by most VGA hardware.