mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-11 08:30:55 +00:00
Shifts bitplanes irrespective of output window.
This commit is contained in:
parent
c6535bf035
commit
e6001e0f22
@ -182,7 +182,6 @@ template <int cycle> void Chipset::output() {
|
|||||||
// TODO: this doesn't support dual playfields; use an alternative
|
// TODO: this doesn't support dual playfields; use an alternative
|
||||||
// palette table for that.
|
// palette table for that.
|
||||||
const uint32_t source = bitplane_pixels_.get(is_high_res_);
|
const uint32_t source = bitplane_pixels_.get(is_high_res_);
|
||||||
bitplane_pixels_.shift(is_high_res_);
|
|
||||||
|
|
||||||
pixels_[0] = palette_[source >> 24];
|
pixels_[0] = palette_[source >> 24];
|
||||||
pixels_[1] = palette_[(source >> 16) & 0xff];
|
pixels_[1] = palette_[(source >> 16) & 0xff];
|
||||||
@ -230,6 +229,10 @@ template <int cycle> void Chipset::output() {
|
|||||||
if(cycle == line_length_ - 1) {
|
if(cycle == line_length_ - 1) {
|
||||||
flush_output();
|
flush_output();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update all active pixel shifters.
|
||||||
|
// TODO: including sprites.
|
||||||
|
bitplane_pixels_.shift(is_high_res_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user