1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Tweaks selected output mode when both BPP bits are set.

This commit is contained in:
Thomas Harte 2019-11-18 22:56:40 -05:00
parent 0ce5057fd9
commit 6990abc0d3

View File

@ -391,11 +391,11 @@ void Video::write(int address, uint16_t value) {
void Video::update_output_mode() {
// If this is black and white mode, that's that.
switch((video_mode_ >> 8) & 3) {
default:
case 0: output_bpp_ = OutputBpp::Four; break;
case 1: output_bpp_ = OutputBpp::Two; break;
// 1bpp mode ignores the otherwise-programmed frequency.
default:
case 2:
output_bpp_ = OutputBpp::One;
field_frequency_ = FieldFrequency::SeventyTwo;