Fix invisible sprite when Y + Height >= 256 and Y < _vblankStartScanline
This commit is contained in:
parent
dd9e689880
commit
bf961dc559
1 changed files with 3 additions and 2 deletions
|
@ -42,8 +42,9 @@ struct SpriteInfo
|
|||
return false;
|
||||
}
|
||||
|
||||
uint8_t endY = (Y + (interlace ? (Height >> 1) : Height)) & 0xFF;
|
||||
return (scanline >= Y && scanline < endY) || (endY < Y && scanline < endY);
|
||||
uint16_t endY = (Y + (interlace ? (Height >> 1) : Height));
|
||||
uint8_t endY_8 = endY & 0xFF;
|
||||
return (scanline >= Y && scanline < endY) || (endY_8 < Y && scanline < endY_8);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue