From 997877c05befa92d64e9843951ad6013fea31736 Mon Sep 17 00:00:00 2001 From: feos Date: Mon, 22 Feb 2016 19:32:34 +0300 Subject: [PATCH] debugger regs: format reg names on launch, smarter spacing. --- BizHawk.Client.EmuHawk/tools/Debugger/RegisterBoxControl.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/Debugger/RegisterBoxControl.cs b/BizHawk.Client.EmuHawk/tools/Debugger/RegisterBoxControl.cs index 31d49a27fc..bcb181bd0a 100644 --- a/BizHawk.Client.EmuHawk/tools/Debugger/RegisterBoxControl.cs +++ b/BizHawk.Client.EmuHawk/tools/Debugger/RegisterBoxControl.cs @@ -167,7 +167,7 @@ namespace BizHawk.Client.EmuHawk var t = new TextBox { Name = register.Key, - Text = register.Value.Value.ToHexString(register.Value.BitSize / 16), + Text = register.Value.Value.ToHexString(register.Value.BitSize / 4), Width = UIHelper.ScaleX(6 + ((register.Value.BitSize / 4) * 9)), Location = new Point(UIHelper.ScaleX(width + 10), y), MaxLength = register.Value.BitSize / 4, @@ -203,13 +203,13 @@ namespace BizHawk.Client.EmuHawk this.Controls.Add(new Label { Name = register.Key, - Text = register.Value.Value.ToString(), + Text = register.Value.Value.ToHexString(register.Value.BitSize / 4), Size = new Size(UIHelper.ScaleX(6 + ((register.Value.BitSize / 4) * 9)), UIHelper.ScaleY(15)), Location = new Point(UIHelper.ScaleX(width + 12), y + 2) }); } - y += UIHelper.ScaleY(this.Font.Height + 8); + y += UIHelper.ScaleY(this.Font.Height + (canset ? 10 : 4)); } var flags = registers.Where(r => r.Value.BitSize == 1);