From 73190a01d7fc254b7a1048914f0c05f80054dd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 15 Jun 2010 22:20:06 +0300 Subject: Fix crash with GraphicsMagick >= 1.3.8 and non-XPM images. --- bitmap.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bitmap.c') diff --git a/bitmap.c b/bitmap.c index 2a9037c..9213555 100644 --- a/bitmap.c +++ b/bitmap.c @@ -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; -- cgit v1.2.3