mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-19 08:31:11 +00:00
Correct sprite ordering within pairs.
This commit is contained in:
parent
ce6877d6e4
commit
30d7b0129b
@ -324,20 +324,20 @@ template <int cycle> void Chipset::output() {
|
||||
}
|
||||
} else {
|
||||
// Left pixel.
|
||||
if(data >> 6) {
|
||||
pixels_[0] = pixels_[1] = palette_[base + (data >> 6)];
|
||||
}
|
||||
if((data >> 4) & 3) {
|
||||
pixels_[0] = pixels_[1] = palette_[base + ((data >> 4)&3)];
|
||||
}
|
||||
if(data >> 6) {
|
||||
pixels_[0] = pixels_[1] = palette_[base + (data >> 6)];
|
||||
}
|
||||
|
||||
// Right pixel.
|
||||
if((data >> 2) & 3) {
|
||||
pixels_[2] = pixels_[3] = palette_[base + ((data >> 2)&3)];
|
||||
}
|
||||
if(data & 3) {
|
||||
pixels_[2] = pixels_[3] = palette_[base + (data & 3)];
|
||||
}
|
||||
if((data >> 2) & 3) {
|
||||
pixels_[2] = pixels_[3] = palette_[base + ((data >> 2)&3)];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user