From 62a10de12a02019f47f375c0b7aa0ea84bfb0cd7 Mon Sep 17 00:00:00 2001 From: Souryo Date: Sat, 5 Aug 2017 14:54:20 -0400 Subject: [PATCH] Debugger: Fixed breakpoint highlighting when BP is on current statement --- GUI.NET/Debugger/Controls/ctrlDebuggerCode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI.NET/Debugger/Controls/ctrlDebuggerCode.cs b/GUI.NET/Debugger/Controls/ctrlDebuggerCode.cs index 7ccb7075..eb56f615 100644 --- a/GUI.NET/Debugger/Controls/ctrlDebuggerCode.cs +++ b/GUI.NET/Debugger/Controls/ctrlDebuggerCode.cs @@ -836,7 +836,7 @@ namespace Mesen.GUI.Debugger symbol = LineSymbol.CircleOutline; } - if(breakpoint.Address == (UInt32)(_code._currentActiveAddress.HasValue ? (int)_code._currentActiveAddress.Value : -1)) { + if(_code._currentActiveAddress.HasValue && breakpoint.Matches((int)_code._currentActiveAddress.Value)) { fgColor = Color.Black; bgColor = Color.Yellow; symbol |= LineSymbol.Arrow;