Add 4px gap between cursor and last Glyph

This commit is contained in:
Qball Cow 2014-05-19 17:57:27 +02:00
parent b360cdd13c
commit 6cd01dba0e
1 changed files with 2 additions and 2 deletions

View File

@ -263,8 +263,8 @@ void textbox_draw ( textbox *tb )
// calc cursor position
XftTextExtentsUtf8 ( display, tb->font, ( unsigned char * ) line, cursor_offset, &extents );
// Add a small 2px offset between cursor and last glyph.
cursor_x = extents.width;
// Add a small 4px offset between cursor and last glyph.
cursor_x = extents.width+4;
// We known size it good, no need for double check.
sprintf(line, "%s %s", prompt, text);