diff --git a/lib/waterfoul/ppu.rb b/lib/waterfoul/ppu.rb index 5f944b8..4d07a16 100644 --- a/lib/waterfoul/ppu.rb +++ b/lib/waterfoul/ppu.rb @@ -173,7 +173,7 @@ module Waterfoul 0.upto(7) do |pixelx| buffer_addr = line_pixel_offset + pixelx + window_pos_x - next if buffer_addr < 0 || buffer_addr >= Sreen::SCREEN_WIDTH + next if buffer_addr < 0 || buffer_addr >= Screen::SCREEN_WIDTH shift = 0x1 << (7 - pixelx)