Delay queue widget: Finishing touches

* Reorder widgets in TIA tab
    * Change background color to readonly
    * Pacify compiler warning in iterator
    * Fix typo in TiaDebug
This commit is contained in:
Christian Speckner 2017-04-04 21:53:39 +02:00
parent 96bbba223a
commit 3df449603e
4 changed files with 12 additions and 12 deletions

View File

@ -419,7 +419,7 @@ uInt8 TIADebug::pf2(int newVal)
if(newVal > -1)
mySystem.poke(PF2, newVal);
return myTIA.registerValue(PF1);
return myTIA.registerValue(PF2);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -218,7 +218,7 @@ void DelayQueueWidget::drawWidget(bool hilite)
y += 1;
x += 1;
w -= 1;
surface.fillRect(x, y, w - 1, _h - 2, kWidColor);
surface.fillRect(x, y, w - 1, _h - 2, kBGColorLo);
y += 2;
x += 2;

View File

@ -523,21 +523,21 @@ TiaWidget::TiaWidget(GuiObject* boss, const GUI::Font& lfont,
myPriorityPF->setID(kPriorityPFID);
addFocusWidget(myPriorityPF);
// How to handle undriven pins
xpos = 10; ypos += 2*lineHeight;
myUndrivenPins = new CheckboxWidget(boss, lfont, xpos, ypos+1,
"Drive unused TIA pins randomly on a read/peek", kPPinCmd);
myUndrivenPins->setTarget(this);
addFocusWidget(myUndrivenPins);
xpos = 10;
ypos += 2*lineHeight;
ypos += 2 * lineHeight;
new StaticTextWidget(boss, lfont, xpos, ypos, 20*fontWidth, fontHeight,
"Queued Writes:", kTextAlignLeft);
ypos += 1.3*lineHeight;
xpos = 10;
myDelayQueueWidget = new DelayQueueWidget(boss, lfont, xpos, ypos);
// How to handle undriven pins
xpos = 10; ypos += (myDelayQueueWidget->getHeight() + lineHeight);
myUndrivenPins = new CheckboxWidget(boss, lfont, xpos, ypos+1,
"Drive unused TIA pins randomly on a read/peek", kPPinCmd);
myUndrivenPins->setTarget(this);
addFocusWidget(myUndrivenPins);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -88,7 +88,7 @@ bool DelayQueueIterator::next()
else
break;
}
return isValid();
}
return isValid();
}