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:
parent
d3021e8c90
commit
6d7c6de32f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user