From da78065996da81cacf9941ddfbf95cfcb2e762c8 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Sat, 12 Jan 2019 12:14:14 +0100 Subject: [PATCH] fixed view of disabled checkbox --- Changes.txt | 2 +- src/gui/Widget.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Changes.txt b/Changes.txt index 6568263c5..46221134e 100644 --- a/Changes.txt +++ b/Changes.txt @@ -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 diff --git a/src/gui/Widget.cxx b/src/gui/Widget.cxx index cf9ce07e1..8acdbae4e 100644 --- a/src/gui/Widget.cxx +++ b/src/gui/Widget.cxx @@ -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);