fix(ppu): fix off by one error when grabbing sprite address

This commit is contained in:
Rekai Nyangadzayi Musuka 2021-05-05 00:01:19 -05:00
parent b57df3d2a7
commit 2cf85b0add
1 changed files with 1 additions and 1 deletions

View File

@ -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
}; };