aboutsummaryrefslogtreecommitdiff
path: root/gui/widget.cpp
diff options
context:
space:
mode:
authorMax Horn2002-11-21 15:20:52 +0000
committerMax Horn2002-11-21 15:20:52 +0000
commit9ff12dbc01d2a56aa29f1d6275876b8190e69ba5 (patch)
tree4f18d272dd8b75f789cd4775cd71bfd714908192 /gui/widget.cpp
parent5852b6a09bc3135adb39f93d56da98f5894df66b (diff)
downloadscummvm-rg350-9ff12dbc01d2a56aa29f1d6275876b8190e69ba5.tar.gz
scummvm-rg350-9ff12dbc01d2a56aa29f1d6275876b8190e69ba5.tar.bz2
scummvm-rg350-9ff12dbc01d2a56aa29f1d6275876b8190e69ba5.zip
Implemented EditTextWidget; fixed Add Game/Remove Game in launcher; make use of EditTextWidget in EditGameDialog; various other tweaks
svn-id: r5665
Diffstat (limited to 'gui/widget.cpp')
-rw-r--r--gui/widget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp
index 1451dce773..b3c4aa4a58 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -101,7 +101,7 @@ void StaticTextWidget::setValue(int value)
void StaticTextWidget::drawWidget(bool hilite)
{
NewGui *gui = _boss->getGui();
- gui->drawString(_label.c_str(), _x, _y, _w, gui->_textcolor, _align);
+ gui->drawString(_label, _x, _y, _w, gui->_textcolor, _align);
}
@@ -125,7 +125,7 @@ void ButtonWidget::handleMouseUp(int x, int y, int button, int clickCount)
void ButtonWidget::drawWidget(bool hilite)
{
NewGui *gui = _boss->getGui();
- gui->drawString(_label.c_str(), _x, _y, _w,
+ gui->drawString(_label, _x, _y, _w,
!isEnabled() ? gui->_color :
hilite ? gui->_textcolorhi : gui->_textcolor, _align);
}
@@ -195,7 +195,7 @@ void CheckboxWidget::drawWidget(bool hilite)
gui->fillRect(_x + 2, _y + 2, 10, 10, gui->_bgcolor);
// Finally draw the label
- gui->drawString(_label.c_str(), _x + 20, _y + 3, _w, gui->_textcolor);
+ gui->drawString(_label, _x + 20, _y + 3, _w, gui->_textcolor);
}
#pragma mark -