From bebe1e3938a80173b5b9efaf546b8fd7b304e337 Mon Sep 17 00:00:00 2001 From: Sour Date: Sun, 25 Mar 2018 17:52:07 -0400 Subject: [PATCH] Debugger: Memory Tools - Fixed minor highlight issue in high density text mode --- GUI.NET/Debugger/HexBox/HexBox.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GUI.NET/Debugger/HexBox/HexBox.cs b/GUI.NET/Debugger/HexBox/HexBox.cs index 23aeb156..e4d44736 100644 --- a/GUI.NET/Debugger/HexBox/HexBox.cs +++ b/GUI.NET/Debugger/HexBox/HexBox.cs @@ -2612,7 +2612,8 @@ namespace Be.Windows.Forms //Draw string view SizeF stringSize = g.MeasureString(stringToDisplay, Font, 1000, _stringFormat); - g.FillRectangle(bgBrush, xPos, bytePointF.Y, stringSize.Width, _charSize.Height); + float yPos = bytePointF.Y + (HighDensityMode ? _highDensityModeOffset : 0); + g.FillRectangle(bgBrush, xPos, yPos, stringSize.Width, _charSize.Height); drawCaret(); g.DrawString(stringToDisplay, Font, fgBrush, new PointF(xPos, bytePointF.Y), _stringFormat); }