From eb03d73f664b9d45eae86cef0e62555b557f847a Mon Sep 17 00:00:00 2001 From: alloncm Date: Sat, 21 Aug 2021 21:46:57 +0300 Subject: [PATCH] Fix the bg rendering Allow the smooth moving animation on X axis --- lib_gb/src/ppu/fifo/fifo_ppu.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib_gb/src/ppu/fifo/fifo_ppu.rs b/lib_gb/src/ppu/fifo/fifo_ppu.rs index 6c60a24f..7b2308fe 100644 --- a/lib_gb/src/ppu/fifo/fifo_ppu.rs +++ b/lib_gb/src/ppu/fifo/fifo_ppu.rs @@ -234,7 +234,10 @@ impl FifoPpu{ self.bg_fetcher.reset(); self.sprite_fetcher.reset(); - // TODO break case found on the first try + // If im on the first iteration and finished the 160 pixels break; + // In this case the number of t_cycles should be eneven but it will break + // my code way too much for now so Im leaving this as it is... (maybe in the future) + break; } } }