From 9351397e832527a2da2f3a8c156227eaa7f2f394 Mon Sep 17 00:00:00 2001 From: Sour Date: Sat, 18 Jan 2020 14:51:52 -0500 Subject: [PATCH] Debugger: Event Viewer - Fixed tooltips sometimes not being shown at the correct position --- GUI.NET/Debugger/Controls/ctrlEventViewerPpuView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI.NET/Debugger/Controls/ctrlEventViewerPpuView.cs b/GUI.NET/Debugger/Controls/ctrlEventViewerPpuView.cs index 1c2684f3..b3e5ea98 100644 --- a/GUI.NET/Debugger/Controls/ctrlEventViewerPpuView.cs +++ b/GUI.NET/Debugger/Controls/ctrlEventViewerPpuView.cs @@ -311,7 +311,7 @@ namespace Mesen.GUI.Debugger.Controls Form parentForm = this.FindForm(); _tooltip = new frmCodeTooltip(parentForm, values, null, null, null, 10); _tooltip.FormClosed += (s, evt) => { _tooltip = null; }; - Point location = this.PointToScreen(new Point(e.Location.X - picViewer.ScrollOffsets.X, e.Location.Y - picViewer.ScrollOffsets.Y)); + Point location = Control.MousePosition; location.Offset(10, 10); _tooltip.SetFormLocation(location, this); }