aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Beardmore <pete.beardmore@msn.com>2018-03-04 21:47:34 (GMT)
committerMathias Gumz <akira@fluxbox.org>2018-03-14 06:49:50 (GMT)
commit375e41bb37da296e5d7803c7ea97d9320516cba7 (patch)
tree52cf96c1e82acecebeb23f82ef72b020813a9e72
parent79ce3ef424754d65081957121dcbe6efbc1885d2 (diff)
downloadfluxbox-375e41bb37da296e5d7803c7ea97d9320516cba7.zip
fluxbox-375e41bb37da296e5d7803c7ea97d9320516cba7.tar.bz2
fbtk, textbox, fix cursor position and size
-use font height for cursor -prefer 'descent to ascent' coverage as opposed to 'baseline plus way too high'!
-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,