From 6cd01dba0e64d18357a911bb7a344eddd0b590fb Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Mon, 19 May 2014 17:57:27 +0200 Subject: [PATCH] Add 4px gap between cursor and last Glyph --- source/textbox.c | 4 ++-- 1 file 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);