aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/TextBox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/TextBox.cc')
-rw-r--r--src/FbTk/TextBox.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc
index 2e3ed7f..8384c45 100644
--- a/src/FbTk/TextBox.cc
+++ b/src/FbTk/TextBox.cc
@@ -250,7 +250,7 @@ void TextBox::clear() {
250 250
251 251
252 // draw cursor position 252 // draw cursor position
253 drawLine(gc(), cursor_pos, center_pos, cursor_pos, center_pos - font().height()); 253 drawLine(gc(), cursor_pos, height()/2 + font().ascent()/2, cursor_pos, height()/2 - font().ascent()/2);
254} 254}
255 255
256void TextBox::moveResize(int x, int y, 256void TextBox::moveResize(int x, int y,