fix lightfun more better by masking out the unwanted bits from xbuf

This commit is contained in:
zeromus 2016-12-07 22:26:30 -06:00
parent 097bbee267
commit fd71ab0160
1 changed files with 4 additions and 3 deletions

View File

@ -119,9 +119,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
goto loopout;
short s = xbuf[j * 256 + i];
if ((s & 0x8000)==0)
sum += _currentLuma[s];
short palcolor = (short)(s & 0x3F);
short intensity = (short)((s >> 6) & 0x7);
sum += _currentLuma[palcolor];
}
}
loopout: