fix lightfun more better by masking out the unwanted bits from xbuf
This commit is contained in:
parent
097bbee267
commit
fd71ab0160
|
@ -119,9 +119,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||||
goto loopout;
|
goto loopout;
|
||||||
|
|
||||||
short s = xbuf[j * 256 + i];
|
short s = xbuf[j * 256 + i];
|
||||||
|
|
||||||
if ((s & 0x8000)==0)
|
short palcolor = (short)(s & 0x3F);
|
||||||
sum += _currentLuma[s];
|
short intensity = (short)((s >> 6) & 0x7);
|
||||||
|
sum += _currentLuma[palcolor];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
loopout:
|
loopout:
|
||||||
|
|
Loading…
Reference in New Issue