1
0
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:
Thomas Harte 2021-11-26 18:08:10 -05:00
parent bea6cf2038
commit cd53e42d79

View File

@ -266,10 +266,10 @@ template <int cycle> void Chipset::output() {
if(dual_playfields_) {
// Dense: just write both.
if(even_over_odd_) {
pixels_[0] = palette_[8 + (source >> 27) & 7];
pixels_[1] = palette_[8 + (source >> 19) & 7];
pixels_[2] = palette_[8 + (source >> 11) & 7];
pixels_[3] = palette_[8 + (source >> 3) & 7];
pixels_[0] = palette_[8 + ((source >> 27) & 7)];
pixels_[1] = palette_[8 + ((source >> 19) & 7)];
pixels_[2] = palette_[8 + ((source >> 11) & 7)];
pixels_[3] = palette_[8 + ((source >> 3) & 7)];
if((source >> 24) & 7) pixels_[0] = palette_[(source >> 24) & 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_[3] = palette_[source & 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 >> 11) & 7) pixels_[2] = palette_[8 + (source >> 11) & 7];
if((source >> 3) & 7) pixels_[3] = palette_[8 + (source >> 3) & 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 >> 11) & 7) pixels_[2] = palette_[8 + ((source >> 11) & 7)];
if((source >> 3) & 7) pixels_[3] = palette_[8 + ((source >> 3) & 7)];
}
} else {
pixels_[0] = swizzled_palette_[source >> 24];