mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-28 21:49:27 +00:00
Resolve operator precedence.
This commit is contained in:
parent
bea6cf2038
commit
cd53e42d79
@ -266,10 +266,10 @@ template <int cycle> void Chipset::output() {
|
|||||||
if(dual_playfields_) {
|
if(dual_playfields_) {
|
||||||
// Dense: just write both.
|
// Dense: just write both.
|
||||||
if(even_over_odd_) {
|
if(even_over_odd_) {
|
||||||
pixels_[0] = palette_[8 + (source >> 27) & 7];
|
pixels_[0] = palette_[8 + ((source >> 27) & 7)];
|
||||||
pixels_[1] = palette_[8 + (source >> 19) & 7];
|
pixels_[1] = palette_[8 + ((source >> 19) & 7)];
|
||||||
pixels_[2] = palette_[8 + (source >> 11) & 7];
|
pixels_[2] = palette_[8 + ((source >> 11) & 7)];
|
||||||
pixels_[3] = palette_[8 + (source >> 3) & 7];
|
pixels_[3] = palette_[8 + ((source >> 3) & 7)];
|
||||||
|
|
||||||
if((source >> 24) & 7) pixels_[0] = palette_[(source >> 24) & 7];
|
if((source >> 24) & 7) pixels_[0] = palette_[(source >> 24) & 7];
|
||||||
if((source >> 16) & 7) pixels_[1] = palette_[(source >> 16) & 7];
|
if((source >> 16) & 7) pixels_[1] = palette_[(source >> 16) & 7];
|
||||||
@ -281,10 +281,10 @@ template <int cycle> void Chipset::output() {
|
|||||||
pixels_[2] = palette_[(source >> 8) & 7];
|
pixels_[2] = palette_[(source >> 8) & 7];
|
||||||
pixels_[3] = palette_[source & 7];
|
pixels_[3] = palette_[source & 7];
|
||||||
|
|
||||||
if((source >> 27) & 7) pixels_[0] = palette_[8 + (source >> 27) & 7];
|
if((source >> 27) & 7) pixels_[0] = palette_[8 + ((source >> 27) & 7)];
|
||||||
if((source >> 19) & 7) pixels_[1] = palette_[8 + (source >> 19) & 7];
|
if((source >> 19) & 7) pixels_[1] = palette_[8 + ((source >> 19) & 7)];
|
||||||
if((source >> 11) & 7) pixels_[2] = palette_[8 + (source >> 11) & 7];
|
if((source >> 11) & 7) pixels_[2] = palette_[8 + ((source >> 11) & 7)];
|
||||||
if((source >> 3) & 7) pixels_[3] = palette_[8 + (source >> 3) & 7];
|
if((source >> 3) & 7) pixels_[3] = palette_[8 + ((source >> 3) & 7)];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pixels_[0] = swizzled_palette_[source >> 24];
|
pixels_[0] = swizzled_palette_[source >> 24];
|
||||||
|
Loading…
Reference in New Issue
Block a user