Small Fix for Fonts

This commit is contained in:
jojo61 2019-11-17 11:07:15 +01:00
parent 780c594ba2
commit 695a6495dd
1 changed files with 8 additions and 5 deletions

View File

@ -439,9 +439,12 @@ cOglFont *cOglFont::Get(const char *name, int charHeight) {
}
void cOglFont::Init(void) {
fonts = new cList<cOglFont>;
if (FT_Init_FreeType(&ftLib))
if (FT_Init_FreeType(&ftLib)) {
esyslog("[softhddev]failed to initialize FreeType library!");
return;
}
fonts = new cList<cOglFont>;
initiated = true;
}