aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/TextButton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/TextButton.cc')
-rw-r--r--src/FbTk/TextButton.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbTk/TextButton.cc b/src/FbTk/TextButton.cc
index 054995a..0d9eef0 100644
--- a/src/FbTk/TextButton.cc
+++ b/src/FbTk/TextButton.cc
@@ -133,7 +133,7 @@ void TextButton::clearArea(int x, int y,
133 133
134 134
135unsigned int TextButton::textWidth() const { 135unsigned int TextButton::textWidth() const {
136 return font().textWidth(text().c_str(), text().size()); 136 return font().textWidth(text().data(), text().size());
137} 137}
138 138
139unsigned int TextButton::textHeight() const { 139unsigned int TextButton::textHeight() const {
@@ -157,7 +157,7 @@ void TextButton::drawText(int x_offset, int y_offset, FbDrawable *drawable) {
157 bevel(), 157 bevel(),
158 justify(), 158 justify(),
159 font(), 159 font(),
160 text().c_str(), text().size(), 160 text().data(), text().size(),
161 textlen); // return new text lne 161 textlen); // return new text lne
162 162
163 // center text by default 163 // center text by default
@@ -175,7 +175,7 @@ void TextButton::drawText(int x_offset, int y_offset, FbDrawable *drawable) {
175 font().drawText(*drawable, 175 font().drawText(*drawable,
176 screenNumber(), 176 screenNumber(),
177 gc(), // graphic context 177 gc(), // graphic context
178 text().c_str(), textlen, // string and string size 178 text().data(), textlen, // string and string size
179 textx, texty, m_orientation); // position 179 textx, texty, m_orientation); // position
180} 180}
181 181