diff --git a/benchmarks/optcarrot/lib/optcarrot/driver/sixel_video.rb b/benchmarks/optcarrot/lib/optcarrot/driver/sixel_video.rb index a428825d..4259e5e7 100644 --- a/benchmarks/optcarrot/lib/optcarrot/driver/sixel_video.rb +++ b/benchmarks/optcarrot/lib/optcarrot/driver/sixel_video.rb @@ -7,7 +7,7 @@ def init super @buff = "".b @line = "".b - @seq_setup = "\e[H\ePq" + @seq_setup = "\e[H\eP7q" print "\e[2J" @palette, colors = Driver.quantize_colors(@palette_rgb) diff --git a/benchmarks/optcarrot/lib/optcarrot/ppu.rb b/benchmarks/optcarrot/lib/optcarrot/ppu.rb index 1fb48408..17831ca6 100644 --- a/benchmarks/optcarrot/lib/optcarrot/ppu.rb +++ b/benchmarks/optcarrot/lib/optcarrot/ppu.rb @@ -471,7 +471,6 @@ def poke_2007(_addr, data) @palette_ram[addr ^ 0x10] = data @output_color[addr ^ 0x10] = final end - @output_bg_color = @palette_ram[0] & 0x3f else addr &= 0x3fff if addr >= 0x2000 @@ -891,7 +890,7 @@ def run def dispose @run = false - raise 'PPU Fiber should have finished' unless @fiber.resume == :done + raise 'PPU Fiber should have finished' unless @fiber.nil? || @fiber.resume == :done @fiber = nil end