/[RomCheater]/trunk/RomCheater/Docking/UI/UIMemoryViewer.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/UI/UIMemoryViewer.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater/Docking/UI/UIMemoryViewer.cs	2012/06/03 16:50:16	256
+++ trunk/RomCheater/Docking/UI/UIMemoryViewer.cs	2012/06/05 01:19:54	282
@@ -87,8 +87,8 @@
         public IConfigPlugin AcceptedPlugin { get; set; }
         #endregion
         #region IAcceptsMemoryRange members
-        public int MemoryStart { get { return 0; } }
-        public uint MemorySize { get { return int.MaxValue; } }
+        public int MemoryStart { get { return MemorySizeConstants.MinimumAddress; } }
+        public uint MemorySize { get { return MemorySizeConstants.MaximumAddress; } }
         #endregion
         public void GotoTop() { this.CURRENT_TOP_ADDR = 0; }
         public void GotoBottom() { uint size = (uint)MemorySize; this.CURRENT_TOP_ADDR = (int)((size - 1) - max_ram_view); }
@@ -141,7 +141,7 @@
             int TotalHeight = txtData.Height;
             int NumberOfBytes = (int)((TotalHeight / ByteHeight) * max_address_width);
             int byte_width = (max_address_width * 2);
-            max_ram_view = NumberOfBytes + (byte_width - 1);
+            max_ram_view = NumberOfBytes + (byte_width);
         }
         private void btnGotoAddress_Click(object sender, EventArgs e)
         {

 

  ViewVC Help
Powered by ViewVC 1.1.22