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
This commit is contained in:
parent
0c4f41198a
commit
42bb04b2ce
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user