NES - tiny speedup
This commit is contained in:
parent
728c970f16
commit
493cff72c4
|
@ -140,7 +140,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo
|
||||||
{
|
{
|
||||||
for (int y = top; y <= bottom; y++)
|
for (int y = top; y <= bottom; y++)
|
||||||
{
|
{
|
||||||
short pixel = emu.ppu.xbuf[(y * 256) + x];
|
short pixel = emu.ppu.xbuf[(y << 8) + x];
|
||||||
if ((pixel & 0x8000) != 0 && useBackdrop)
|
if ((pixel & 0x8000) != 0 && useBackdrop)
|
||||||
{
|
{
|
||||||
pixels[((y - top) * width) + (x - left)] = backdrop;
|
pixels[((y - top) * width) + (x - left)] = backdrop;
|
||||||
|
|
Loading…
Reference in New Issue