From e01bedee1881ad21e0c6992cb8b29a36c60c1699 Mon Sep 17 00:00:00 2001 From: Sour Date: Mon, 14 Oct 2019 13:59:10 -0400 Subject: [PATCH] Debugger: Hex Viewer - Display selection length in decimal and hex --- GUI.NET/Debugger/Controls/ctrlHexViewer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI.NET/Debugger/Controls/ctrlHexViewer.cs b/GUI.NET/Debugger/Controls/ctrlHexViewer.cs index a4558bdd..5114fb57 100644 --- a/GUI.NET/Debugger/Controls/ctrlHexViewer.cs +++ b/GUI.NET/Debugger/Controls/ctrlHexViewer.cs @@ -449,7 +449,7 @@ namespace Mesen.GUI.Debugger.Controls private void UpdateLocationLabel() { if(ctrlHexBox.SelectionLength > 0) { - this.lblLocation.Text = $"Selection: ${ctrlHexBox.SelectionStart.ToString("X4")} - ${(ctrlHexBox.SelectionStart + ctrlHexBox.SelectionLength - 1).ToString("X4")} ({ctrlHexBox.SelectionLength} bytes)"; + this.lblLocation.Text = $"Selection: ${ctrlHexBox.SelectionStart.ToString("X4")} - ${(ctrlHexBox.SelectionStart + ctrlHexBox.SelectionLength - 1).ToString("X4")}, {ctrlHexBox.SelectionLength} bytes (${ctrlHexBox.SelectionLength.ToString("X2")})"; } else { this.lblLocation.Text = $"Location: ${ctrlHexBox.SelectionStart.ToString("X4")}"; }