From 033c008a06b2b83915b9cfd02031eaa872759b2d Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Mon, 29 Aug 2011 00:05:32 +0000 Subject: [PATCH] NESPPU - fix address display of pattern view details --- BizHawk.MultiClient/NEStools/NESPPU.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/BizHawk.MultiClient/NEStools/NESPPU.cs b/BizHawk.MultiClient/NEStools/NESPPU.cs index 2bec679349..c929443d73 100644 --- a/BizHawk.MultiClient/NEStools/NESPPU.cs +++ b/BizHawk.MultiClient/NEStools/NESPPU.cs @@ -15,10 +15,7 @@ namespace BizHawk.MultiClient public partial class NESPPU : Form { //TODO: - //Pattern viewer - - // Row interleaving - // option for 2x view (and 4x?) - // Mouse over - Usage (BG vs Sprite usage) + //If 8/16 sprite mode, mouse over should put 32x64 version of prite //Speedups //Smarter refreshing? only refresh when things of changed, perhaps peek at the ppu to when the pattern table has changed, or sprites have moved @@ -328,13 +325,15 @@ namespace BizHawk.MultiClient if (table == 0) { - tile = address = (e.X - 1) / 8; + tile = (e.X - 1) / 8; + address = tile * 16; } else { - address = 0x1000 + ((e.X - 128) / 8); tile = (e.X - 128) / 8; + address = 0x1000 + (tile * 16); + } address += (e.Y / 8) * 256;