diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-03-27 22:05:35 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-03-27 22:05:35 +0000 |
commit | 97c12b975c163aa878736fe66d1968f0dc5af7eb (patch) | |
tree | c240e5adc8be40dab46e251042a2beca5fd18db2 /gtk | |
parent | b16cfd2d6edf20a31613f421582f528a93c40e41 (diff) | |
download | netsurf-97c12b975c163aa878736fe66d1968f0dc5af7eb.tar.gz netsurf-97c12b975c163aa878736fe66d1968f0dc5af7eb.tar.bz2 |
Add 1px to caret height.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/window.c b/gtk/window.c index 994c6a2ee..a3d6d4936 100644 --- a/gtk/window.c +++ b/gtk/window.c @@ -1154,12 +1154,12 @@ static void gui_window_place_caret(struct gui_window *g, int x, int y, int heigh { nsgtk_redraw_caret(g); - height -= 2; y += 1; + height -= 1; if (y < clip->y0) { - height -= clip->y0 - y + 1; - y = clip->y0 - 1; + height -= clip->y0 - y; + y = clip->y0; } if (y + height > clip->y1) { |