Просмотр исходного кода

Updates for changes to pub.freetype. (#45)

Brucey 4 месяцев назад
Родитель
Сommit
7a043585c3
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      hbfreetypefont.mod/hbfreetypefont.bmx

+ 2 - 2
hbfreetypefont.mod/hbfreetypefont.bmx

@@ -104,7 +104,7 @@ Type THBFreeTypeFont Extends BRL.Font.TFont
 		glyph=New TFreeTypeGlyph
 		glyph=New TFreeTypeGlyph
 		_glyphs[index]=glyph
 		_glyphs[index]=glyph
 
 
-		If FT_Load_Glyph( _ft_face,index,FT_LOAD_RENDER ) Return glyph
+		If FT_Load_Glyph( _ft_face,UInt(index),FT_LOAD_RENDER ) Return glyph
 
 
 		Local info:SGlyphPosition
 		Local info:SGlyphPosition
 		_positionMap.TryGetValue(index, info)
 		_positionMap.TryGetValue(index, info)
@@ -185,7 +185,7 @@ Type THBFreeTypeFont Extends BRL.Font.TFont
 
 
 			glyphs[i] = glyph
 			glyphs[i] = glyph
 
 
-			If FT_Load_Glyph( _ft_face,index,FT_LOAD_RENDER ) Continue
+			If FT_Load_Glyph( _ft_face,UInt(index),FT_LOAD_RENDER ) Continue
 
 
 			BuildGlyph(glyph, infos[i])
 			BuildGlyph(glyph, infos[i])