Debugger: Fixed breakpoint address when clicking on margin to set a breakpoint on the last visible line
This commit is contained in:
parent
5899427fa5
commit
cc93ab470d
1 changed files with 1 additions and 1 deletions
|
@ -436,10 +436,10 @@ namespace Mesen.GUI.Debugger
|
|||
|
||||
protected override void OnMouseDown(MouseEventArgs e)
|
||||
{
|
||||
base.OnMouseDown(e);
|
||||
this.Focus();
|
||||
int clickedLine = this.GetLineAtPosition(e.Y);
|
||||
this.CursorPosition = this.ScrollPosition + clickedLine;
|
||||
base.OnMouseDown(e);
|
||||
}
|
||||
|
||||
private void DrawLine(Graphics g, int currentLine, int marginLeft, int positionY)
|
||||
|
|
Loading…
Add table
Reference in a new issue