diff options
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | README | 4 | ||||
-rw-r--r-- | bitmap.c | 5 | ||||
-rw-r--r-- | bitmap.h | 1 | ||||
-rw-r--r-- | logo.c | 1 |
5 files changed, 16 insertions, 4 deletions
@@ -10,8 +10,8 @@ # Debugging on/off #SKINENIGMA_DEBUG = 1 -# If you have installed ImageMagick and want to use -# images in event's and recording's details. +# If you have installed ImageMagick and want to use images in events' +# and recordings' details. Set to GRAPHICS to use GraphicsMagick. #HAVE_IMAGEMAGICK = 1 # If you are using the epgsearch plugin and want to see the number of @@ -129,8 +129,13 @@ OBJS = $(PLUGIN).o enigma.o config.o logo.o tools.o status.o texteffects.o setup ifdef HAVE_IMAGEMAGICK OBJS += bitmap.o +ifneq ($(HAVE_IMAGEMAGICK), GRAPHICS) LIBS += -lMagick++ INCLUDES += -I/usr/include/ImageMagick -I/usr/local/include/ImageMagick +else +LIBS += $(shell pkg-config --libs GraphicsMagick++) +INCLUDES += $(shell pkg-config --cflags GraphicsMagick++) +endif endif ifneq ($(shell which freetype-config),) @@ -46,8 +46,8 @@ This turns usage of logos in the main menu completely off. This might also improve the performance of the menus. EXPERIMENTAL!!! HAVE_IMAGEMAGICK = 1 -If you have installed ImageMagick and want to use images in event's -and recording's details. +If you have installed ImageMagick and want to use images in events' +and recordings' details. Set to GRAPHICS to use GraphicsMagick. SKINENIGMA_DISABLE_SIGNALINFO = 1 Do not include code to show signal strength and signal-to-noise ratio. @@ -15,6 +15,11 @@ using namespace Magick; #include <vector> #include <vdr/themes.h> + +void cOSDImageBitmap::Init(void) +{ + InitializeMagick(NULL); +} cOSDImageBitmap::cOSDImageBitmap() {} @@ -18,6 +18,7 @@ public: cOSDImageBitmap(); ~cOSDImageBitmap(); bool DrawImage(const char *fileNameP, int x, int y, int w, int h, int colors, cBitmap *bmp); + static void Init(void); private: bool DrawMagick(const char *Filename, int x, int y, int height, int width, int colors, cBitmap *bmp); @@ -18,6 +18,7 @@ cEnigmaLogoCache::cEnigmaLogoCache(unsigned int cacheSizeP) :cacheSizeM(cacheSiz { #ifdef HAVE_IMAGEMAGICK bmpImage = new cBitmap(8, 8, 1); + cOSDImageBitmap::Init(); #endif } |