Use PANGO_PIXELS instead of division. (#334617)

2007-02-16  Behdad Esfahbod  <behdad@gnome.org>

        * gdk/gdkpango.c (gdk_pango_layout_get_clip_region): Use PANGO_PIXELS
        instead of division. (#334617)


svn path=/trunk/; revision=17317
This commit is contained in:
Behdad Esfahbod 2007-02-16 22:12:42 +00:00 committed by Behdad Esfahbod
parent c24c88fe30
commit af93363a76
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-02-16 Behdad Esfahbod <behdad@gnome.org>
* gdk/gdkpango.c (gdk_pango_layout_get_clip_region): Use PANGO_PIXELS
instead of division. (#334617)
2007-02-16 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeprivate.h: add cursor_offset field.

View File

@ -1364,8 +1364,8 @@ gdk_pango_layout_get_clip_region (PangoLayout *layout,
baseline = pango_layout_iter_get_baseline (iter);
line_region = layout_iter_get_line_clip_region(iter,
x_origin + logical_rect.x / PANGO_SCALE,
y_origin + baseline / PANGO_SCALE,
x_origin + PANGO_PIXELS (logical_rect.x),
y_origin + PANGO_PIXELS (baseline),
index_ranges,
n_ranges);