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

Fix flush_pixels for 640px mode.

This commit is contained in:
Thomas Harte 2023-12-06 11:50:16 -05:00
parent d3021e8c90
commit 6d7c6de32f

View File

@ -176,7 +176,7 @@ class CGA {
serialise_pixels(state);
}
}
pixel_pointer += pixels_per_tick;
pixel_pointer += active_pixels_per_tick;
}
}
@ -192,7 +192,7 @@ class CGA {
void perform_bus_cycle_phase2(const Motorola::CRTC::BusState &) {}
void flush_pixels() {
crt.output_data(count * active_clock_divider, size_t(count));
crt.output_data(count * active_clock_divider, size_t((count * active_pixels_per_tick) / 8));
pixels = pixel_pointer = nullptr;
}