diff options
author | Stone <syphyr@gmail.com> | 2009-01-03 21:50:31 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2009-01-03 21:50:31 +0200 |
commit | a056f044df6abf32ce5fb663cf5ad302acbe46b8 (patch) | |
tree | 4dc89230131e9aaf09c4e71aa7934ebf7fd99539 /font.c | |
parent | 0bb8af583951e51284eb7363e2748f7322c70020 (diff) | |
download | vdr-plugin-text2skin-a056f044df6abf32ce5fb663cf5ad302acbe46b8.tar.gz vdr-plugin-text2skin-a056f044df6abf32ce5fb663cf5ad302acbe46b8.tar.bz2 |
Make compatible with VDR >= 1.5.7.
Diffstat (limited to 'font.c')
-rw-r--r-- | font.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -31,8 +31,13 @@ const cFont *cText2SkinFont::Load(const std::string &Path, const std::string &Fi const cFont *res = NULL; #ifdef HAVE_FREETYPE char *cachename; +#if VDRVERSNUM >= 10507 + asprintf(&cachename, "%s_%d_%d_%d", Filename.c_str(), Size, Width, I18nCurrentLanguage()); + if (mFontCache.Load(Path + "/" + Filename, cachename, Size, I18nCurrentLanguage(), Width)) +#else asprintf(&cachename, "%s_%d_%d_%d", Filename.c_str(), Size, Width, Setup.OSDLanguage); if (mFontCache.Load(Path + "/" + Filename, cachename, Size, Setup.OSDLanguage, Width)) +#endif res = mFontCache.GetFont(cachename); else esyslog("ERROR: Text2Skin: Couldn't load font %s:%d", Filename.c_str(), Size); |