mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-19 23:32:28 +00:00
Resolves right-side TMS sprite droppages.
This commit is contained in:
parent
b4f871a2ef
commit
58ca74c68a
@ -723,9 +723,9 @@ void Base::draw_tms_character(int start, int end) {
|
||||
const int shift_advance = sprites_magnified_ ? 1 : 2;
|
||||
for(int index = line_buffer.active_sprite_slot - 1; index >= 0; --index) {
|
||||
LineBuffer::ActiveSprite &sprite = line_buffer.active_sprites[index];
|
||||
if(sprite.shift_position < 16) {
|
||||
const int pixel_start = std::max(start, sprite.x);
|
||||
const int shifter_target = sprites_16x16_ ? 32 : 16;
|
||||
if(sprite.shift_position < shifter_target) {
|
||||
const int pixel_start = std::max(start, sprite.x);
|
||||
for(int c = pixel_start; c < end && sprite.shift_position < shifter_target; ++c) {
|
||||
const int shift = (sprite.shift_position >> 1) ^ 7;
|
||||
int sprite_colour = (sprite.image[shift >> 3] >> (shift & 7)) & 1;
|
||||
|
Loading…
Reference in New Issue
Block a user