From 75b64b57e0939bb006fb7c279a08a63f6de1a04f Mon Sep 17 00:00:00 2001 From: Sour Date: Wed, 14 Feb 2018 22:04:59 -0500 Subject: [PATCH] Debugger: Fixed Linux issues with new scrollbar --- GUI.NET/Debugger/Controls/ctrlCodeScrollbar.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GUI.NET/Debugger/Controls/ctrlCodeScrollbar.cs b/GUI.NET/Debugger/Controls/ctrlCodeScrollbar.cs index 6b582e1a..a89d2640 100644 --- a/GUI.NET/Debugger/Controls/ctrlCodeScrollbar.cs +++ b/GUI.NET/Debugger/Controls/ctrlCodeScrollbar.cs @@ -36,7 +36,7 @@ namespace Mesen.GUI.Debugger.Controls if(this.ColorProvider != null) { Color prevBgColor = Color.White; int drawHeight = 0; - for(int i = 0; i < e.ClipRectangle.Height; i++) { + for(int i = 0; i < this.Height; i++) { float top = e.ClipRectangle.Top + i; float position = (float)i / this.Height; Color bgColor = this.ColorProvider.GetBackgroundColor(position); @@ -133,9 +133,9 @@ namespace Mesen.GUI.Debugger.Controls _codeTooltip.ScrollToLineIndex(scrollPosition); } if(_codeTooltip != null) { - _codeTooltip.Show(); _codeTooltip.Left = p.X + 5; _codeTooltip.Top = p.Y; + _codeTooltip.Show(); } _lastPreviewScrollPosition = scrollPosition; }