diff options
author | QC <qball@gmpclient.org> | 2015-04-05 10:23:59 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2015-04-05 10:23:59 +0200 |
commit | 8cc553ebaf31da31da152e8f12e788e2e740e488 (patch) | |
tree | 50e408d2a3eb35a0e52eca7399db8c9e8de3cf86 | |
parent | b4c2faf86d66c1ec6adec50a0aca19f5df49150e (diff) |
Fix issue: #140: Align cursor with font.
-rw-r--r-- | source/textbox.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/textbox.c b/source/textbox.c index c10fa8d1..b1a3344a 100644 --- a/source/textbox.c +++ b/source/textbox.c @@ -307,7 +307,9 @@ void textbox_draw ( textbox *tb ) // draw the cursor if ( tb->flags & TB_EDITABLE ) { - XftDrawRect ( draw, &tb->color_fg, x / PANGO_SCALE + cursor_x, SIDE_MARGIN, cursor_width, font_height ); + XftDrawRect ( draw, &tb->color_fg, + x / PANGO_SCALE + cursor_x, y/PANGO_SCALE, // Align with font + cursor_width, font_height ); } // flip canvas to window |