diff options
author | Qball Cow <qball@gmpclient.org> | 2014-05-19 17:57:27 +0200 |
---|---|---|
committer | Qball Cow <qball@gmpclient.org> | 2014-05-19 17:57:27 +0200 |
commit | 6cd01dba0e64d18357a911bb7a344eddd0b590fb (patch) | |
tree | e808d03741c619f240beb9da47ad0ccf683b3b4d /source | |
parent | b360cdd13c20fe4725acf1bc67d98ee0b59155ec (diff) |
Add 4px gap between cursor and last Glyph
Diffstat (limited to 'source')
-rw-r--r-- | source/textbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/textbox.c b/source/textbox.c index 8b000fdd..bbd13fe0 100644 --- a/source/textbox.c +++ b/source/textbox.c @@ -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); |