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:
parent
0b50e4eae9
commit
b89515a0c1
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue