From 288c99b519b24cc17fc7609a31cbfb98a7b21b02 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Mon, 7 Mar 2011 18:25:53 +0000 Subject: [PATCH] MemoryViewer - fix highlighting + scrollbar --- BizHawk.MultiClient/tools/MemoryViewer.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/BizHawk.MultiClient/tools/MemoryViewer.cs b/BizHawk.MultiClient/tools/MemoryViewer.cs index 2760466848..149d5992c5 100644 --- a/BizHawk.MultiClient/tools/MemoryViewer.cs +++ b/BizHawk.MultiClient/tools/MemoryViewer.cs @@ -10,7 +10,6 @@ namespace BizHawk.MultiClient public class MemoryViewer : Panel { //TODO: highlighting and address determining for 2 & 4 byte viewing - //Scroll highlighted when moving scroll bar public VScrollBar vScrollBar1; public Label info; @@ -78,10 +77,8 @@ namespace BizHawk.MultiClient if (addressHighlighted >= 0 && IsVisible(addressHighlighted)) { - int zz = addressHighlighted % 16; - int zzz = zz * 24; int left = ((addressHighlighted % 16) * 25) + 56 + addrOffset -(addressHighlighted % 4); - int top = ((addressHighlighted / 16) * 16) + 36; + int top = (((addressHighlighted / 16)-vScrollBar1.Value) * 16) + 36; Rectangle rect = new Rectangle(left, top, 25, 16); g.DrawRectangle(new Pen(highlightBrush), rect); g.FillRectangle(highlightBrush, rect);