From 7819d076239e23c9f46b402a58f982a8a8e69112 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Mon, 18 Dec 2017 12:33:17 +0100 Subject: [PATCH] fixed deleting/toggling existing 'breakif' and 'savestateif' --- src/debugger/DebuggerParser.cxx | 2 ++ src/gui/TabWidget.cxx | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/debugger/DebuggerParser.cxx b/src/debugger/DebuggerParser.cxx index de621faf3..ba772f806 100644 --- a/src/debugger/DebuggerParser.cxx +++ b/src/debugger/DebuggerParser.cxx @@ -756,6 +756,7 @@ void DebuggerParser::executeBreakif() { if(condition == debugger.m6502().getCondBreakNames()[i]) { + args[0] = i; executeDelbreakif(); return; } @@ -1830,6 +1831,7 @@ void DebuggerParser::executeSavestateif() { if(condition == debugger.m6502().getCondSaveStateNames()[i]) { + args[0] = i; executeDelsavestateif(); return; } diff --git a/src/gui/TabWidget.cxx b/src/gui/TabWidget.cxx index 23c556a86..fb55d1096 100644 --- a/src/gui/TabWidget.cxx +++ b/src/gui/TabWidget.cxx @@ -319,7 +319,7 @@ void TabWidget::drawWidget(bool hilite) if(i == _activeTab) { s.hLine(x, _y, x + _tabWidth - 1, kWidColor); - s.vLine(x + _tabWidth, _y + 1, _y + _tabHeight - 1, kBGColorHi); + s.vLine(x + _tabWidth, _y + 1, _y + _tabHeight - 1, kBGColorLo); } else s.hLine(x, _y + _tabHeight, x + _tabWidth, kWidColor); @@ -338,7 +338,7 @@ void TabWidget::drawWidget(bool hilite) #else // fill empty right space s.hLine(x - kTabSpacing + 1, _y + _tabHeight, _x + _w - 1, kWidColor); - s.hLine(_x, _y + _h - 1, _x + _w - 1, kBGColorHi); + s.hLine(_x, _y + _h - 1, _x + _w - 1, kBGColorLo); #endif }