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'!
This commit is contained in:
Pete Beardmore 2018-03-04 21:47:34 +00:00 committed by Mathias Gumz
parent 79ce3ef424
commit 375e41bb37

View file

@ -250,7 +250,7 @@ void TextBox::clear() {
// 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,