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). (thanks go to RomHunter for his tireless research in this area).
Related to this, updated the snapshot collection. 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 bits
- delayed playfield color - delayed playfield color
- delayed player 0 swap - delayed player 0 swap

View File

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