From cdb7b137896e72d1aa28eca14e88b03b3cfc68af Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 12 Oct 2002 00:26:24 +0000 Subject: revised options dialog svn-id: r5130 --- gui/widget.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'gui/widget.cpp') diff --git a/gui/widget.cpp b/gui/widget.cpp index 39c2a6b69b..463c0a7b3d 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -103,9 +103,7 @@ void StaticTextWidget::setValue(int value) void StaticTextWidget::drawWidget(bool hilite) { NewGui *gui = _boss->getGui(); - gui->drawString(_label.c_str(), _x, _y, _w, - !isEnabled() ? gui->_color : - hilite ? gui->_textcolorhi : gui->_textcolor, _align); + gui->drawString(_label.c_str(), _x, _y, _w, gui->_textcolor, _align); } @@ -125,6 +123,14 @@ void ButtonWidget::handleMouseUp(int x, int y, int button, int clickCount) sendCommand(_cmd, 0); } +void ButtonWidget::drawWidget(bool hilite) +{ + NewGui *gui = _boss->getGui(); + gui->drawString(_label.c_str(), _x, _y, _w, + !isEnabled() ? gui->_color : + hilite ? gui->_textcolorhi : gui->_textcolor, _align); +} + #pragma mark - -- cgit v1.2.3