Debugger - Register box - set width of textboxes according to the max number of digits needed

This commit is contained in:
adelikat 2014-12-20 03:52:23 +00:00
parent 0c1e3eaa3b
commit fe2abe787b
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ namespace BizHawk.Client.EmuHawk
{
Name = register.Key,
Text = register.Value.Value.ToHexString(register.Value.BitSize / 16),
Width = 45,
Width = 6 + ((register.Value.BitSize / 4) * 9),
Location = new Point(40, y),
MaxLength = register.Value.BitSize / 4,
CharacterCasing = CharacterCasing.Upper