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'!
Pete Beardmore pete.beardmore@msn.com
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/FbTk/TextBox.cc
→
src/FbTk/TextBox.cc
@@ -250,7 +250,7 @@ }
// draw cursor position - drawLine(gc(), cursor_pos, center_pos, cursor_pos, center_pos - font().height()); + drawLine(gc(), cursor_pos, height()/2 + font().ascent()/2, cursor_pos, height()/2 - font().ascent()/2); } void TextBox::moveResize(int x, int y,