summaryrefslogtreecommitdiff
path: root/pango/glyphstring.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-07-08 22:15:32 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-07-08 22:15:32 +0000
commitb9f7b88e3d100b87a856e077b5f2fdbf49c73ebb (patch)
treee51a0fd2de7833ca1e05722f870a92d8f25d0a14 /pango/glyphstring.c
parentd54f97cea6ac3136621fc06a5239ad4bf142fde9 (diff)
downloadpango-b9f7b88e3d100b87a856e077b5f2fdbf49c73ebb.tar.gz
Fix silly error in implementation of pango_glyph_string_get_width(), and
2006-07-08 Behdad Esfahbod <behdad@gnome.org> * pango/glyphstring.c (pango_glyph_string_get_width): * pango/pango-glyph.h: * pango/pango-layout.c (pango_layout_line_index_to_x), (pango_layout_line_x_to_index), (pango_layout_line_get_x_ranges): * pango/pango-renderer.c (pango_renderer_draw_layout_line): Fix silly error in implementation of pango_glyph_string_get_width(), and also remove unused font parameter from its signature.
Diffstat (limited to 'pango/glyphstring.c')
-rw-r--r--pango/glyphstring.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pango/glyphstring.c b/pango/glyphstring.c
index 82770349..353fa2a4 100644
--- a/pango/glyphstring.c
+++ b/pango/glyphstring.c
@@ -266,7 +266,6 @@ pango_glyph_string_extents (PangoGlyphString *glyphs,
/**
* pango_glyph_string_get_width:
* @glyphs: a #PangoGlyphString
- * @font: a #PangoFont
*
* Computes the logical width of the glyph string as can also be computed
* using pango_glyph_string_extents(). However, since this only computes the
@@ -278,14 +277,13 @@ pango_glyph_string_extents (PangoGlyphString *glyphs,
* Since: 1.14
*/
int
-pango_glyph_string_get_width (PangoGlyphString *glyphs,
- PangoFont *font)
+pango_glyph_string_get_width (PangoGlyphString *glyphs)
{
int i;
int width = 0;
for (i = 0; i < glyphs->num_glyphs; i++)
- width += &glyphs->glyphs[i].geometry.width;
+ width += glyphs->glyphs[i].geometry.width;
return width;
}