Debugger: Memory Tools - Fixed minor highlight issue in high density text mode

This commit is contained in:
Sour 2018-03-25 17:52:07 -04:00
parent 624809545b
commit bebe1e3938

View file

@ -2612,7 +2612,8 @@ namespace Be.Windows.Forms
//Draw string view //Draw string view
SizeF stringSize = g.MeasureString(stringToDisplay, Font, 1000, _stringFormat); 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(); drawCaret();
g.DrawString(stringToDisplay, Font, fgBrush, new PointF(xPos, bytePointF.Y), _stringFormat); g.DrawString(stringToDisplay, Font, fgBrush, new PointF(xPos, bytePointF.Y), _stringFormat);
} }