diff options
Diffstat (limited to 'gui/widget.cpp')
| -rw-r--r-- | gui/widget.cpp | 12 | 
1 files changed, 9 insertions, 3 deletions
| 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 - | 
