PPU: Fixed sprite display when vertical mirroring is enabled
This commit is contained in:
parent
21791170f4
commit
0431e1931d
1 changed files with 2 additions and 2 deletions
|
@ -160,8 +160,8 @@ void Ppu::EvaluateNextLineSprites()
|
||||||
uint8_t yOffset;
|
uint8_t yOffset;
|
||||||
int rowOffset;
|
int rowOffset;
|
||||||
if(info.VerticalMirror) {
|
if(info.VerticalMirror) {
|
||||||
yOffset = (height - (_scanline + 1 - y)) & 0x07;
|
yOffset = (height - 1 - (_scanline + 1 - y)) & 0x07;
|
||||||
rowOffset = (height - (_scanline + 1 - y)) >> 3;
|
rowOffset = (height - 1 - (_scanline + 1 - y)) >> 3;
|
||||||
} else {
|
} else {
|
||||||
yOffset = (_scanline + 1 - y) & 0x07;
|
yOffset = (_scanline + 1 - y) & 0x07;
|
||||||
rowOffset = (_scanline + 1 - y) >> 3;
|
rowOffset = (_scanline + 1 - y) >> 3;
|
||||||
|
|
Loading…
Add table
Reference in a new issue