mirror of
https://github.com/libretro/Mesen.git
synced 2024-12-16 13:56:48 +00:00
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
@ -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…
Reference in New Issue
Block a user