From 80ea9ad4e3f23773da5b2c871931117f2df41145 Mon Sep 17 00:00:00 2001 From: louis Date: Wed, 30 Jan 2013 21:08:26 +0100 Subject: Added displaying of additional EPG images in detailed EPG view --- imageloader.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'imageloader.c') diff --git a/imageloader.c b/imageloader.c index 058affa..569d9fd 100644 --- a/imageloader.c +++ b/imageloader.c @@ -106,6 +106,26 @@ bool cImageLoader::LoadEPGImage(int eventID) { return true; } +bool cImageLoader::LoadAdditionalEPGImage(cString name) { + int width = config.epgImageWidthLarge; + int height = config.epgImageHeightLarge; + if ((width == 0)||(height==0)) + return false; + bool success = false; + if (config.epgImagePathSet) { + success = LoadImage(name, config.epgImagePath, "jpg"); + } + if (!success) { + success = LoadImage(name, config.epgImagePathDefault, "jpg"); + } + if (!success) + return false; + if (height != 0 || width != 0) { + buffer.sample( Geometry(width, height)); + } + return true; +} + bool cImageLoader::LoadRecordingImage(cString Path) { int width = config.epgImageWidth; int height = config.epgImageHeight; -- cgit v1.2.3