Browse Source

Merge pull request #183 from csaken/master

Fixed compile error occuring if FONS_USE_FREETYPE is defined.
shared-context
Mikko Mononen 10 years ago
parent
commit
f75078f594
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/fontstash.h

+ 3
- 2
src/fontstash.h View File

@@ -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;
}


Loading…
Cancel
Save