From 02becf6c42edae76f518857419ea74a83312ff2a Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 12 Jun 2011 22:08:18 +0000 Subject: [PATCH] [NES] fix user BG disable also to keep from interfering with spritehits --- BizHawk.Emulation/Consoles/Nintendo/NES/PPU.run.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation/Consoles/Nintendo/NES/PPU.run.cs b/BizHawk.Emulation/Consoles/Nintendo/NES/PPU.run.cs index cad1da8665..f05d897715 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/NES/PPU.run.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/NES/PPU.run.cs @@ -158,7 +158,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo //check all the conditions that can cause things to render in these 8px bool renderspritenow = reg_2001.show_obj && (xt > 0 || reg_2001.show_obj_leftmost); - bool renderbgnow = reg_2001.show_bg && (xt > 0 || reg_2001.show_bg_leftmost) && nes.CoreInputComm.NES_ShowBG; + bool renderbgnow = reg_2001.show_bg && (xt > 0 || reg_2001.show_bg_leftmost); for (int xp = 0; xp < 8; xp++, rasterpos++) { @@ -186,6 +186,9 @@ namespace BizHawk.Emulation.Consoles.Nintendo pixelcolor |= 0x8000; } + if (!nes.CoreInputComm.NES_ShowBG) + pixelcolor = 0x8000; + //look for a sprite to be drawn bool havepixel = false; for (int s = 0; s < oamcount; s++)