1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-27 16:31:31 +00:00

Fixed parameter shadowing.

This commit is contained in:
Thomas Harte 2017-07-21 21:51:18 -04:00
parent 449c33ee8b
commit 37459a3ebc

View File

@ -229,14 +229,14 @@ class TIA {
} queue_[4]; } queue_[4];
int queue_read_pointer_, queue_write_pointer_; int queue_read_pointer_, queue_write_pointer_;
inline void output_pixels(uint8_t *const target, const int count, const uint8_t collision_identity, int pixel_position, int adder, int reverse_mask) { inline void output_pixels(uint8_t *const target, const int count, const uint8_t collision_identity, int output_pixel_position, int output_adder, int output_reverse_mask) {
if(pixel_position == 32 || !graphic[graphic_index]) return; if(output_pixel_position == 32 || !graphic[graphic_index]) return;
int output_cursor = 0; int output_cursor = 0;
while(pixel_position < 32 && output_cursor < count) { while(output_pixel_position < 32 && output_cursor < count) {
int shift = (pixel_position >> 2) ^ reverse_mask; int shift = (output_pixel_position >> 2) ^ output_reverse_mask;
target[output_cursor] |= ((graphic[graphic_index] >> shift)&1) * collision_identity; target[output_cursor] |= ((graphic[graphic_index] >> shift)&1) * collision_identity;
output_cursor++; output_cursor++;
pixel_position += adder; output_pixel_position += output_adder;
} }
} }