From 5bcc35580eb8f256dafef21f19b504fcd932e639 Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Tue, 5 Aug 2014 11:59:46 +1000 Subject: [PATCH] Build fix for android font that was missed during rust upgrade. --- src/components/gfx/platform/android/font.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/gfx/platform/android/font.rs b/src/components/gfx/platform/android/font.rs index 0a34723a367..704dd9c8aa0 100644 --- a/src/components/gfx/platform/android/font.rs +++ b/src/components/gfx/platform/android/font.rs @@ -174,9 +174,9 @@ impl FontHandleMethods for FontHandle { fn glyph_h_kerning(&self, first_glyph: GlyphId, second_glyph: GlyphId) -> FractionalPixel { assert!(self.face.is_not_null()); - let delta = struct_FT_Vector_ { x: 0, y: 0 }; + let mut delta = struct_FT_Vector_ { x: 0, y: 0 }; unsafe { - FT_Get_Kerning(self.face, first_glyph, second_glyph, FT_KERNING_DEFAULT, &delta); + FT_Get_Kerning(self.face, first_glyph, second_glyph, FT_KERNING_DEFAULT, &mut delta); } fixed_to_float_ft(delta.x as i32) }