fixed view of disabled checkbox

This commit is contained in:
thrust26 2019-01-12 12:14:14 +01:00
parent fee5f57179
commit da78065996
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
(thanks go to RomHunter for his tireless research in this area).
Related to this, updated the snapshot collection.
* Added various developer options for oddball TIAs
* Added various developer options for oddball TIAs:
- delayed playfield bits
- delayed playfield color
- delayed player 0 swap

View File

@ -647,7 +647,7 @@ void CheckboxWidget::drawWidget(bool hilite)
// Do we draw a square or cross?
s.fillRect(_x + 1, _y + _boxY + 1, 12, 12,
_changed ? onTop ? kDbgChangedColor : kDlgColor :
isEnabled() ? onTop ? _bgcolor : kDlgColor : kColor);
isEnabled() && onTop ? _bgcolor : kDlgColor);
if(_state)
s.drawBitmap(_img, _x + 2, _y + _boxY + 2, onTop && isEnabled() ? hilite && isEditable() ? kWidColorHi : kCheckColor
: kColor, 10);