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:
parent
79ce3ef424
commit
375e41bb37
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ void TextBox::clear() {
|
||||||
|
|
||||||
|
|
||||||
// draw cursor position
|
// 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,
|
void TextBox::moveResize(int x, int y,
|
||||||
|
|
Loading…
Reference in a new issue