diff options
Diffstat (limited to 'src/FbTk/TextButton.cc')
-rw-r--r-- | src/FbTk/TextButton.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FbTk/TextButton.cc b/src/FbTk/TextButton.cc index 922eb74..5a7afa6 100644 --- a/src/FbTk/TextButton.cc +++ b/src/FbTk/TextButton.cc | |||
@@ -20,6 +20,7 @@ | |||
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | #include "TextButton.hh" | 22 | #include "TextButton.hh" |
23 | #include "TextUtils.hh" | ||
23 | #include "Font.hh" | 24 | #include "Font.hh" |
24 | #include "GContext.hh" | 25 | #include "GContext.hh" |
25 | 26 | ||
@@ -150,7 +151,7 @@ void TextButton::renderForeground(FbWindow &win, FbDrawable &drawable) { | |||
150 | } | 151 | } |
151 | 152 | ||
152 | void TextButton::drawText(int x_offset, int y_offset, FbDrawable *drawable) { | 153 | void TextButton::drawText(int x_offset, int y_offset, FbDrawable *drawable) { |
153 | size_t textlen = text().size(); | 154 | unsigned int textlen = text().size(); |
154 | // do text alignment | 155 | // do text alignment |
155 | 156 | ||
156 | unsigned int textw = width(), texth = height(); | 157 | unsigned int textw = width(), texth = height(); |