do last commit more correctly

This commit is contained in:
adelikat 2014-12-13 17:33:02 +00:00
parent 18e112536a
commit 9997c4fa8d
3 changed files with 3 additions and 4 deletions

View File

@ -44,7 +44,7 @@ namespace BizHawk.Client.EmuHawk
return (uint)_maxSize.Value;
}
return (uint)(((long)1 << (4 * MaxLength)) - 1);
return (uint)(((long)1 << (4 * MaxLength)) - 1);
}
public override void ResetText()

View File

@ -55,7 +55,7 @@ namespace BizHawk.Client.EmuHawk
set
{
AddressBox.MaxLength = value;
AddressBox.SetHexProperties(value);
}
}

View File

@ -7,7 +7,6 @@ using System.Linq;
using System.Text;
using System.Windows.Forms;
using BizHawk.Common.NumberExtensions;
using BizHawk.Emulation.Common;
using BizHawk.Emulation.Common.IEmulatorExtensions;
using BizHawk.Client.Common;
@ -101,7 +100,7 @@ namespace BizHawk.Client.EmuHawk.tools.Debugger
var b = new AddBreakpointDialog
{
// TODO: don't use Global.Emulator! Pass in an IMemoryDomains implementation from the parent tool
MaxAddressSize = (Global.Emulator.AsMemoryDomains().MemoryDomains.SystemBus.Size - 1).NumHexDigits()
MaxAddressSize = Global.Emulator.AsMemoryDomains().MemoryDomains.SystemBus.Size - 1
};
if (b.ShowDialog() == DialogResult.OK)