Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2796609
)
ecere/gfx/newFonts/fmFontManager: Fixed warnings
author
Jerome St-Louis
<jerome@ecere.com>
Fri, 22 Jan 2016 21:44:29 +0000
(06:44 +0900)
committer
Jerome St-Louis
<jerome@ecere.com>
Mon, 21 Nov 2016 14:18:43 +0000
(09:18 -0500)
ecere/src/gfx/newFonts/fmFontManager.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gfx/newFonts/fmFontManager.ec
b/ecere/src/gfx/newFonts/fmFontManager.ec
index
f84f689
..
ca16976
100644
(file)
--- 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 )