Ignore regions which fall completely outside the line. (#165862, Felipe
2005-04-07 Matthias Clasen <mclasen@redhat.com> * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Ignore regions which fall completely outside the line. (#165862, Felipe Heidrich)
This commit is contained in:
committed by
Matthias Clasen
parent
711600ea49
commit
ba516ae783
@@ -1,3 +1,9 @@
|
||||
2005-04-07 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
|
||||
Ignore regions which fall completely outside the line.
|
||||
(#165862, Felipe Heidrich)
|
||||
|
||||
2005-04-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/*.c, gdk/gdkdisplaymanager.c: s/G-OBJECT/G_OBJECT/g,
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2005-04-07 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
|
||||
Ignore regions which fall completely outside the line.
|
||||
(#165862, Felipe Heidrich)
|
||||
|
||||
2005-04-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/*.c, gdk/gdkdisplaymanager.c: s/G-OBJECT/G_OBJECT/g,
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2005-04-07 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
|
||||
Ignore regions which fall completely outside the line.
|
||||
(#165862, Felipe Heidrich)
|
||||
|
||||
2005-04-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/*.c, gdk/gdkdisplaymanager.c: s/G-OBJECT/G_OBJECT/g,
|
||||
|
||||
@@ -1316,12 +1316,14 @@ gdk_pango_layout_line_get_clip_region (PangoLayoutLine *line,
|
||||
|
||||
/* Note that get_x_ranges returns layout coordinates
|
||||
*/
|
||||
pango_layout_line_get_x_ranges (line,
|
||||
index_ranges[i*2],
|
||||
index_ranges[i*2+1],
|
||||
&pixel_ranges, &n_pixel_ranges);
|
||||
|
||||
for (j=0; j < n_pixel_ranges; j++)
|
||||
if (index_ranges[i*2+1] >= line->start_index &&
|
||||
index_ranges[i*2] < line->start_index + line->length)
|
||||
pango_layout_line_get_x_ranges (line,
|
||||
index_ranges[i*2],
|
||||
index_ranges[i*2+1],
|
||||
&pixel_ranges, &n_pixel_ranges);
|
||||
|
||||
for (j = 0; j < n_pixel_ranges; j++)
|
||||
{
|
||||
GdkRectangle rect;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user