diff options
author | Max Horn | 2002-10-12 00:26:24 +0000 |
---|---|---|
committer | Max Horn | 2002-10-12 00:26:24 +0000 |
commit | cdb7b137896e72d1aa28eca14e88b03b3cfc68af (patch) | |
tree | 7bb4a3491b08c6eca17f0e1f228021a73a6688f0 /gui/widget.cpp | |
parent | 8ea56e58a86ca14fa4420ba573ac9d9c0a5602a9 (diff) | |
download | scummvm-rg350-cdb7b137896e72d1aa28eca14e88b03b3cfc68af.tar.gz scummvm-rg350-cdb7b137896e72d1aa28eca14e88b03b3cfc68af.tar.bz2 scummvm-rg350-cdb7b137896e72d1aa28eca14e88b03b3cfc68af.zip |
revised options dialog
svn-id: r5130
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 - |