fix(ppu): fix off by one error when grabbing sprite address
This commit is contained in:
parent
b57df3d2a7
commit
2cf85b0add
|
@ -727,7 +727,7 @@ impl PixelFetcher {
|
||||||
let scroll_y = pos.scroll_y;
|
let scroll_y = pos.scroll_y;
|
||||||
|
|
||||||
let offset = 2 * if attr.flags.y_flip() {
|
let offset = 2 * if attr.flags.y_flip() {
|
||||||
obj_size - (line_y + scroll_y) % 8
|
(obj_size - 1) - (line_y + scroll_y) % 8
|
||||||
} else {
|
} else {
|
||||||
(line_y + scroll_y) % 8
|
(line_y + scroll_y) % 8
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue