diff options
author | Carl Worth <cworth@cworth.org> | 2004-11-12 06:12:20 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2004-11-12 06:12:20 +0000 |
commit | b6a2e10301a6670b9678afcc7fda8c1826dd72c8 (patch) | |
tree | 6fd81878b56e69648e75ebe3106ffe76d7a3d897 /src/cairo-ft-font.c | |
parent | 10deb4c4ae149cb3677f84aef0a8f72d4e919074 (diff) |
Move declarations above statements to satisfy pre-C99 compilers. Thanks to Michael Johnson <ahze@ahze.net>.
Diffstat (limited to 'src/cairo-ft-font.c')
-rw-r--r-- | src/cairo-ft-font.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c index ca1dc218..8a6dcb77 100644 --- a/src/cairo-ft-font.c +++ b/src/cairo-ft-font.c @@ -481,6 +481,9 @@ _cairo_ft_font_text_to_glyphs (void *abstract_font, cairo_glyph_t **glyphs, int *nglyphs) { + double x = 0., y = 0.; + size_t i; + FT_ULong *ucs4 = NULL; cairo_ft_font_t *font = abstract_font; FT_Face face = font->val->face; cairo_glyph_cache_key_t key; @@ -490,10 +493,6 @@ _cairo_ft_font_text_to_glyphs (void *abstract_font, key.unscaled = &font->base; key.scale = *sc; - double x = 0., y = 0.; - size_t i; - FT_ULong *ucs4 = NULL; - _utf8_to_ucs4 (utf8, &ucs4, nglyphs); if (ucs4 == NULL) |