forked from AuroraMiddleware/gtk
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:
parent
c24c88fe30
commit
af93363a76
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user