From af93363a76cb7cde8f5e7475464b31cbd5b54b3e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 16 Feb 2007 22:12:42 +0000 Subject: [PATCH] Use PANGO_PIXELS instead of division. (#334617) 2007-02-16 Behdad Esfahbod * gdk/gdkpango.c (gdk_pango_layout_get_clip_region): Use PANGO_PIXELS instead of division. (#334617) svn path=/trunk/; revision=17317 --- ChangeLog | 5 +++++ gdk/gdkpango.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2db17797f7..7bb35b11e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-02-16 Behdad Esfahbod + + * gdk/gdkpango.c (gdk_pango_layout_get_clip_region): Use PANGO_PIXELS + instead of division. (#334617) + 2007-02-16 Kristian Rietveld * gtk/gtktreeprivate.h: add cursor_offset field. diff --git a/gdk/gdkpango.c b/gdk/gdkpango.c index 59438b5f8e..6bc0cffdf2 100644 --- a/gdk/gdkpango.c +++ b/gdk/gdkpango.c @@ -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);