summaryrefslogtreecommitdiff
path: root/gtk/window.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-03-27 22:05:35 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2014-03-27 22:05:35 +0000
commit97c12b975c163aa878736fe66d1968f0dc5af7eb (patch)
treec240e5adc8be40dab46e251042a2beca5fd18db2 /gtk/window.c
parentb16cfd2d6edf20a31613f421582f528a93c40e41 (diff)
downloadnetsurf-97c12b975c163aa878736fe66d1968f0dc5af7eb.tar.gz
netsurf-97c12b975c163aa878736fe66d1968f0dc5af7eb.tar.bz2
Add 1px to caret height.
Diffstat (limited to 'gtk/window.c')
-rw-r--r--gtk/window.c6
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) {