diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2010-06-15 22:20:06 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2010-06-15 22:20:06 +0300 |
commit | 73190a01d7fc254b7a1048914f0c05f80054dd3c (patch) | |
tree | cd464b1694485469e9dedb52818813172d0df731 /bitmap.c | |
parent | 92711d662d7ffec560f517eb1e4878d1fa1621a9 (diff) | |
download | vdr-plugin-text2skin-73190a01d7fc254b7a1048914f0c05f80054dd3c.tar.gz vdr-plugin-text2skin-73190a01d7fc254b7a1048914f0c05f80054dd3c.tar.bz2 |
Fix crash with GraphicsMagick >= 1.3.8 and non-XPM images.
Diffstat (limited to 'bitmap.c')
-rw-r--r-- | bitmap.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -90,6 +90,12 @@ bool cText2SkinBitmap::Available(const std::string &Filename, int Alpha, int hei return access(Filename.c_str(), F_OK) == 0; } +void cText2SkinBitmap::Init(void) { +#ifdef HAVE_IMAGEMAGICK + InitializeMagick(NULL); +#endif +} + cText2SkinBitmap::cText2SkinBitmap(void) { mCurrent = 0; mLastGet = 0; |