diff options
author | Havoc Pennington <hp@redhat.com> | 2000-11-15 17:43:08 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2000-11-15 17:43:08 +0000 |
commit | 42bb04b2ce94e26af07547b96da2147b8bfe1ffa (patch) | |
tree | 9dcdfb1bcf7222cc12cf0882790de3e07804bb24 | |
parent | 0c4f41198abc2b45580cfa52d143078a933c73bc (diff) | |
download | gtk+-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
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-0 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-2 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 7 | ||||
-rw-r--r-- | gtk/gtktextdisplay.c | 6 |
8 files changed, 52 insertions, 3 deletions
@@ -1,3 +1,10 @@ +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 + 2000-11-15 Alexander Larsson <alla@lysator.liu.se> * gdk/linux-fb/gdkprivate-fb.h: diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index d4ae368845..bd70adab04 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,10 @@ +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 + 2000-11-15 Alexander Larsson <alla@lysator.liu.se> * gdk/linux-fb/gdkprivate-fb.h: diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index d4ae368845..bd70adab04 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +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 + 2000-11-15 Alexander Larsson <alla@lysator.liu.se> * gdk/linux-fb/gdkprivate-fb.h: diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index d4ae368845..bd70adab04 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,10 @@ +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 + 2000-11-15 Alexander Larsson <alla@lysator.liu.se> * gdk/linux-fb/gdkprivate-fb.h: diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index d4ae368845..bd70adab04 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,10 @@ +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 + 2000-11-15 Alexander Larsson <alla@lysator.liu.se> * gdk/linux-fb/gdkprivate-fb.h: diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index d4ae368845..bd70adab04 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +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 + 2000-11-15 Alexander Larsson <alla@lysator.liu.se> * gdk/linux-fb/gdkprivate-fb.h: diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index d4ae368845..bd70adab04 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +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 + 2000-11-15 Alexander Larsson <alla@lysator.liu.se> * gdk/linux-fb/gdkprivate-fb.h: 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; } |