diff --git a/src/ppu.rs b/src/ppu.rs index 6f9e662..c0b4657 100644 --- a/src/ppu.rs +++ b/src/ppu.rs @@ -727,7 +727,7 @@ impl PixelFetcher { let scroll_y = pos.scroll_y; let offset = 2 * if attr.flags.y_flip() { - obj_size - (line_y + scroll_y) % 8 + (obj_size - 1) - (line_y + scroll_y) % 8 } else { (line_y + scroll_y) % 8 };