Skip to content

Commit

Permalink
disable line 166 check
Browse files Browse the repository at this point in the history
  • Loading branch information
griffi-gh committed Feb 1, 2024
1 parent 5b446d0 commit 0b1781d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yarge-core/src/ppu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,9 @@ impl Ppu {
//Update values
self.bg_fetcher.update_values(self.scx, self.scy);
//Switch to window if the pixel is in window
if !self.bg_fetcher.is_window() && self.window_in_ly() && (((self.lx + 7) >= self.wx) || (self.wx == 166)) {
//TODO: line 166 bug emulation is causing missing bg
//if !self.bg_fetcher.is_window() && self.window_in_ly() && (((self.lx + 7) >= self.wx) || (self.wx == 166)) {
if !self.bg_fetcher.is_window() && self.window_in_ly() && ((self.lx + 7) >= self.wx) {
self.bg_fetcher.switch_to_window();
}
self.bg_fetcher.tick(&self.lcdc, &self.vram);
Expand Down

0 comments on commit 0b1781d

Please sign in to comment.