summaryrefslogtreecommitdiff
path: root/gtk/gtktextdisplay.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2000-11-15 17:43:08 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-11-15 17:43:08 +0000
commit42bb04b2ce94e26af07547b96da2147b8bfe1ffa (patch)
tree9dcdfb1bcf7222cc12cf0882790de3e07804bb24 /gtk/gtktextdisplay.c
parent0c4f41198abc2b45580cfa52d143078a933c73bc (diff)
downloadgtk+-42bb04b2ce94e26af07547b96da2147b8bfe1ffa.tar.gz
Remove extra pixel from the cursor (render_layout_line): fix reversed test
2000-11-15 Havoc Pennington <hp@redhat.com> * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel from the cursor (render_layout_line): fix reversed test that caused weird underlines to get drawn
Diffstat (limited to 'gtk/gtktextdisplay.c')
-rw-r--r--gtk/gtktextdisplay.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c
index 55e8ba3fba..ebe457549c 100644
--- a/gtk/gtktextdisplay.c
+++ b/gtk/gtktextdisplay.c
@@ -265,10 +265,10 @@ render_layout_line (GdkDrawable *drawable,
{
if (need_ink)
pango_glyph_string_extents (run->glyphs, run->item->analysis.font,
- NULL, &logical_rect);
+ &ink_rect, &logical_rect);
else
pango_glyph_string_extents (run->glyphs, run->item->analysis.font,
- &ink_rect, &logical_rect);
+ NULL, &logical_rect);
}
else
{
@@ -785,7 +785,7 @@ gtk_text_layout_draw (GtkTextLayout *layout,
line_display->x_offset + cursor->x,
current_y + line_display->top_margin + cursor->y,
line_display->x_offset + cursor->x,
- current_y + line_display->top_margin + cursor->y + cursor->height);
+ current_y + line_display->top_margin + cursor->y + cursor->height - 1);
cursor_list = cursor_list->next;
}