fix(ppu): calculating window position is now signed

This allows for the window to display properly in Link's Awakening
This commit is contained in:
Rekai Nyangadzayi Musuka 2021-06-17 18:48:04 -05:00
parent 0b50e4eae9
commit b89515a0c1
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ impl Ppu {
if self.ctrl.window_enabled() if self.ctrl.window_enabled()
&& !self.window_stat.should_draw() && !self.window_stat.should_draw()
&& self.window_stat.coincidence() && self.window_stat.coincidence()
&& self.x_pos >= self.pos.window_x - 7 && self.x_pos as i16 >= self.pos.window_x as i16 - 7
{ {
self.window_stat.set_should_draw(true); self.window_stat.set_should_draw(true);
self.fetch.back.reset(); self.fetch.back.reset();