1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Shifts bitplanes irrespective of output window.

This commit is contained in:
Thomas Harte 2021-10-25 13:59:39 -07:00
parent c6535bf035
commit e6001e0f22

View File

@ -182,7 +182,6 @@ template <int cycle> void Chipset::output() {
// TODO: this doesn't support dual playfields; use an alternative
// palette table for that.
const uint32_t source = bitplane_pixels_.get(is_high_res_);
bitplane_pixels_.shift(is_high_res_);
pixels_[0] = palette_[source >> 24];
pixels_[1] = palette_[(source >> 16) & 0xff];
@ -230,6 +229,10 @@ template <int cycle> void Chipset::output() {
if(cycle == line_length_ - 1) {
flush_output();
}
// Update all active pixel shifters.
// TODO: including sprites.
bitplane_pixels_.shift(is_high_res_);
}
}