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;
|
||||
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.address = address;
|
||||
}
|
||||
|
|
|
@ -248,7 +248,6 @@ void PopUpWidget::drawWidget(bool hilite)
|
|||
// Fill the background
|
||||
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.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
|
||||
s.drawBitmap(down_arrow, x + w - 13, _y + myArrowsY + 1,
|
||||
!isEnabled() ? kColor : kTextColor, 9u, 8u);
|
||||
|
|
|
@ -241,24 +241,31 @@ Widget* Widget::setFocusForChain(GuiObject* boss, WidgetArray& arr,
|
|||
return nullptr;
|
||||
else
|
||||
{
|
||||
switch(direction)
|
||||
int oldPos = pos;
|
||||
do
|
||||
{
|
||||
case -1: // previous widget
|
||||
pos--;
|
||||
if(pos < 0)
|
||||
pos = size - 1;
|
||||
break;
|
||||
switch(direction)
|
||||
{
|
||||
case -1: // previous widget
|
||||
pos--;
|
||||
if(pos < 0)
|
||||
pos = size - 1;
|
||||
break;
|
||||
|
||||
case +1: // next widget
|
||||
pos++;
|
||||
if(pos >= size)
|
||||
pos = 0;
|
||||
break;
|
||||
case +1: // next widget
|
||||
pos++;
|
||||
if(pos >= size)
|
||||
pos = 0;
|
||||
break;
|
||||
|
||||
default:
|
||||
// pos already set
|
||||
default:
|
||||
// pos already set
|
||||
break;
|
||||
}
|
||||
// break if all widgets should be disabled
|
||||
if(oldPos == pos)
|
||||
break;
|
||||
}
|
||||
} while(!arr[pos]->isEnabled());
|
||||
}
|
||||
|
||||
// Now highlight the active widget
|
||||
|
|
Loading…
Reference in New Issue