Debugger: Fixed memory viewer header/data overlap

This commit is contained in:
Souryo 2016-11-27 20:47:13 -05:00
parent ab9699207d
commit 2bd2932d43

View file

@ -813,7 +813,7 @@ namespace Mesen.GUI.Debugger
}
currentLine = this.ScrollPosition;
positionY = 0;
positionY = string.IsNullOrWhiteSpace(this._header) ? 0 : lineHeight;
while(positionY < rect.Bottom && currentLine < _contents.Length) {
this.DrawMargin(pe.Graphics, currentLine, marginLeft, positionY, lineHeight);
positionY += lineHeight;