Skip to content

Commit

Permalink
Fixed compile occuring if FONS_USE_FREETYPE is defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
jancsi-pixelsrising committed Nov 1, 2014
1 parent b048742 commit a473d72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fontstash.h
Expand Up @@ -153,9 +153,10 @@ typedef struct FONSttFontImpl FONSttFontImpl;

static FT_Library ftLibrary;

int fons__tt_init()
{
int fons__tt_init(FONScontext *context)
{
FT_Error ftError;
FONS_NOTUSED(context);
ftError = FT_Init_FreeType(&ftLibrary);
return ftError == 0;
}
Expand Down

0 comments on commit a473d72

Please sign in to comment.