[NES] fix user BG disable also to keep from interfering with spritehits

This commit is contained in:
zeromus 2011-06-12 22:08:18 +00:00
parent ed5c639f9b
commit 02becf6c42
1 changed files with 4 additions and 1 deletions

View File

@ -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++)