summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorQball Cow <qball@gmpclient.org>2014-05-19 17:57:27 +0200
committerQball Cow <qball@gmpclient.org>2014-05-19 17:57:27 +0200
commit6cd01dba0e64d18357a911bb7a344eddd0b590fb (patch)
treee808d03741c619f240beb9da47ad0ccf683b3b4d /source
parentb360cdd13c20fe4725acf1bc67d98ee0b59155ec (diff)
Add 4px gap between cursor and last Glyph
Diffstat (limited to 'source')
-rw-r--r--source/textbox.c4
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);