summaryrefslogtreecommitdiff
path: root/pango/pangowin32.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-01-16 09:57:30 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-01-16 09:57:30 +0000
commit0b0ddda32b910686118f8d7669364bc6d172e37a (patch)
tree1b470cc8310ad68b28df9742db8046184d70a356 /pango/pangowin32.c
parent56e7902a63f2036ea46a386c9d80827d6420f143 (diff)
downloadpango-0b0ddda32b910686118f8d7669364bc6d172e37a.tar.gz
Use pango_layout(_iter)?_get_line_readonly() instead of
2007-01-16 Behdad Esfahbod <behdad@gnome.org> * examples/cairotwisted.c (draw_text): * pango/pangocairo-win32font.c (max_glyph_width): * pango/pangofc-font.c (max_glyph_width): * pango/pangowin32.c (max_glyph_width), (pango_win32_render_layout): * pango/pangox.c (pango_x_render_layout): Use pango_layout(_iter)?_get_line_readonly() instead of pango_layout(_iter)?_get_line(). svn path=/trunk/; revision=2146
Diffstat (limited to 'pango/pangowin32.c')
-rw-r--r--pango/pangowin32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pangowin32.c b/pango/pangowin32.c
index 2fc734be..22eabb7e 100644
--- a/pango/pangowin32.c
+++ b/pango/pangowin32.c
@@ -533,7 +533,7 @@ max_glyph_width (PangoLayout *layout)
int max_width = 0;
GSList *l, *r;
- for (l = pango_layout_get_lines (layout); l; l = l->next)
+ for (l = pango_layout_get_lines_readonly (layout); l; l = l->next)
{
PangoLayoutLine *line = l->data;
@@ -1052,7 +1052,7 @@ pango_win32_render_layout (HDC hdc,
PangoLayoutLine *line;
int baseline;
- line = pango_layout_iter_get_line (iter);
+ line = pango_layout_iter_get_line_readonly (iter);
pango_layout_iter_get_line_extents (iter, NULL, &logical_rect);
baseline = pango_layout_iter_get_baseline (iter);