From cb037979e94194f71e3f301450f1a9451ca82624 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Tue, 1 Mar 2022 13:28:09 -0800 Subject: [PATCH] Fixed position of execution arrow --- IDE/src/ui/SourceViewPanel.bf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/IDE/src/ui/SourceViewPanel.bf b/IDE/src/ui/SourceViewPanel.bf index c200d176..3b67a70a 100644 --- a/IDE/src/ui/SourceViewPanel.bf +++ b/IDE/src/ui/SourceViewPanel.bf @@ -4452,7 +4452,7 @@ namespace IDE.ui { mLinePointerDrawData.mUpdateCnt = gApp.mUpdateCnt; mLinePointerDrawData.mDebuggerContinueIdx = gApp.mDebuggerContinueIdx; - g.Draw(img, mEditWidget.mX - GS!(20), + g.Draw(img, mEditWidget.mX - GS!(20) - leftAdjust, 0 + lineNum * lineSpacing); } } @@ -4865,8 +4865,10 @@ namespace IDE.ui if (!mouseoverFired) return false; + float leftAdjust = GS!(12); + float editX = GetEditX(); - if ((mousePos.x < editX - 24) || (mousePos.x > editX - 5)) + if ((mousePos.x < editX - GS!(24) - leftAdjust) || (mousePos.x > editX - GS!(5) - leftAdjust)) return false; int mouseLine = GetLineAt(mousePos.x, mousePos.y);