NES - PPU Viewer - oops fix last commit, and also slightly better optimized as a bonus

This commit is contained in:
adelikat 2012-08-11 22:50:14 +00:00
parent 379e724d34
commit 9fff16c0f4
1 changed files with 2 additions and 2 deletions

View File

@ -140,8 +140,8 @@ namespace BizHawk.MultiClient
{
for (int y = 0; y < 8; y++)
{
b0 = GetBit((z << 12) + (i << 8) + (j << 4) + y + 0 << 3, x);
b1 = GetBit((z << 12) + (i << 8) + (j << 4) + y + 1 << 3, x);
b0 = GetBit((z << 12) + (i << 8) + (j << 4) + y , x);
b1 = GetBit((z << 12) + (i << 8) + (j << 4) + y + 8, x);
value = (byte)(b0 + (b1 << 1));
cvalue = Nes.LookupColor(Nes.ppu.PALRAM[value + (pal << 2)]);