mirror of https://github.com/stella-emu/stella.git
'tab' key skips disabled widgets
'ghost' read traps are displayed by 'RTrapG'
This commit is contained in:
parent
b280a3ed27
commit
d7a34ec7dd
|
@ -147,7 +147,8 @@ inline uInt8 M6502::peek(uInt16 address, uInt8 flags)
|
||||||
{
|
{
|
||||||
myJustHitReadTrapFlag = true;
|
myJustHitReadTrapFlag = true;
|
||||||
stringstream msg;
|
stringstream msg;
|
||||||
msg << "RTrap[" << Common::Base::HEX2 << cond << "]" << (myTrapCondNames[cond].empty() ? ": " : "If: {" + myTrapCondNames[cond] + "} ");
|
msg << "RTrap" << (flags == DISASM_NONE ? "G[" : "[") << Common::Base::HEX2 << cond << "]"
|
||||||
|
<< (myTrapCondNames[cond].empty() ? ": " : "If: {" + myTrapCondNames[cond] + "} ");
|
||||||
myHitTrapInfo.message = msg.str();
|
myHitTrapInfo.message = msg.str();
|
||||||
myHitTrapInfo.address = address;
|
myHitTrapInfo.address = address;
|
||||||
}
|
}
|
||||||
|
|
|
@ -248,7 +248,6 @@ void PopUpWidget::drawWidget(bool hilite)
|
||||||
// Fill the background
|
// Fill the background
|
||||||
s.fillRect(x + 1, _y + 1, w - 17, _h - 2, kWidColor);
|
s.fillRect(x + 1, _y + 1, w - 17, _h - 2, kWidColor);
|
||||||
s.fillRect(x + w - 15, _y + 2, 13, _h - 4, isEnabled() && hilite ? kWidColor : kBGColorHi);
|
s.fillRect(x + w - 15, _y + 2, 13, _h - 4, isEnabled() && hilite ? kWidColor : kBGColorHi);
|
||||||
//s.vLine(x + w - 17, _y, _y + _h - 1, kShadowColor);
|
|
||||||
// Draw an arrow pointing down at the right end to signal this is a dropdown/popup
|
// Draw an arrow pointing down at the right end to signal this is a dropdown/popup
|
||||||
s.drawBitmap(down_arrow, x + w - 13, _y + myArrowsY + 1,
|
s.drawBitmap(down_arrow, x + w - 13, _y + myArrowsY + 1,
|
||||||
!isEnabled() ? kColor : kTextColor, 9u, 8u);
|
!isEnabled() ? kColor : kTextColor, 9u, 8u);
|
||||||
|
|
|
@ -240,6 +240,9 @@ Widget* Widget::setFocusForChain(GuiObject* boss, WidgetArray& arr,
|
||||||
if(pos == -1)
|
if(pos == -1)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
int oldPos = pos;
|
||||||
|
do
|
||||||
{
|
{
|
||||||
switch(direction)
|
switch(direction)
|
||||||
{
|
{
|
||||||
|
@ -259,6 +262,10 @@ Widget* Widget::setFocusForChain(GuiObject* boss, WidgetArray& arr,
|
||||||
// pos already set
|
// pos already set
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// break if all widgets should be disabled
|
||||||
|
if(oldPos == pos)
|
||||||
|
break;
|
||||||
|
} while(!arr[pos]->isEnabled());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now highlight the active widget
|
// Now highlight the active widget
|
||||||
|
|
Loading…
Reference in New Issue