Debugger: Fixed Linux issues with new scrollbar

This commit is contained in:
Sour 2018-02-14 22:04:59 -05:00
parent 2f03fc6b9e
commit 75b64b57e0

View file

@ -36,7 +36,7 @@ namespace Mesen.GUI.Debugger.Controls
if(this.ColorProvider != null) { if(this.ColorProvider != null) {
Color prevBgColor = Color.White; Color prevBgColor = Color.White;
int drawHeight = 0; 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 top = e.ClipRectangle.Top + i;
float position = (float)i / this.Height; float position = (float)i / this.Height;
Color bgColor = this.ColorProvider.GetBackgroundColor(position); Color bgColor = this.ColorProvider.GetBackgroundColor(position);
@ -133,9 +133,9 @@ namespace Mesen.GUI.Debugger.Controls
_codeTooltip.ScrollToLineIndex(scrollPosition); _codeTooltip.ScrollToLineIndex(scrollPosition);
} }
if(_codeTooltip != null) { if(_codeTooltip != null) {
_codeTooltip.Show();
_codeTooltip.Left = p.X + 5; _codeTooltip.Left = p.X + 5;
_codeTooltip.Top = p.Y; _codeTooltip.Top = p.Y;
_codeTooltip.Show();
} }
_lastPreviewScrollPosition = scrollPosition; _lastPreviewScrollPosition = scrollPosition;
} }