From 90027085c2b3d095c3b08c2e3943b41c1370e3bf Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Sat, 23 Jan 2016 06:44:29 +0900 Subject: [PATCH] ecere/gfx/newFonts/fmFontManager: Fixed warnings --- ecere/src/gfx/newFonts/fmFontManager.ec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecere/src/gfx/newFonts/fmFontManager.ec b/ecere/src/gfx/newFonts/fmFontManager.ec index f84f689..ca16976 100644 --- a/ecere/src/gfx/newFonts/fmFontManager.ec +++ b/ecere/src/gfx/newFonts/fmFontManager.ec @@ -359,7 +359,7 @@ struct FMFreeTypeFont return 0; glyphslot = face->glyph; - *advance = glyphslot->metrics.horiAdvance; + *advance = (int)glyphslot->metrics.horiAdvance; *x0 = glyphslot->bitmap_left; *x1 = glyphslot->bitmap_left + glyphslot->bitmap.width; *y0 = -glyphslot->bitmap_top; @@ -372,7 +372,7 @@ struct FMFreeTypeFont { FT_Vector ftKerning; FT_Get_Kerning( face, glyph1, glyph2, FT_KERNING_DEFAULT, &ftKerning ); - return ftKerning.x; + return (int)ftKerning.x; } static inline byte *getGlyphBitmap( int glyphindex ) -- 1.8.3.1