Implement 4bpp graphics mode blink properly on VGA #3845
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This implements the 4bpp blink mode properly for real this time.
It turns out that if the plane 3 output is enabled in the graphics controller, then when it's 1, blink is enabled on that bit plane, and when it's 0, that bit plane's output is forced to... 1. Apparently someone thought this made sense.
Exactly what triggers it is something that will remain a mystery until I or someone willing to run tests actually gets access to a real VGA, but until then, this is the most logical explanation I can think of.
Checklist
References
Lotus 1-2-3 release 2.3 and QBASIC SCREEN 10. I'm not sure if any references explicitly document how graphics blink actually works, because from what I've read and remembered so far, IBM didn't. (The original implementation is based on reverse-engineering the mode tables in IBM's EGA documentation.)