diff options
author | louis <louis.braun@gmx.de> | 2013-01-30 21:08:26 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-01-30 21:08:26 +0100 |
commit | 80ea9ad4e3f23773da5b2c871931117f2df41145 (patch) | |
tree | fc357473b0dd440faedf1af7669cf4c551348afb /imageloader.c | |
parent | de9bc2df7e2418269e86abbf452d212a75cdb201 (diff) | |
download | skin-nopacity-80ea9ad4e3f23773da5b2c871931117f2df41145.tar.gz skin-nopacity-80ea9ad4e3f23773da5b2c871931117f2df41145.tar.bz2 |
Added displaying of additional EPG images in detailed EPG view
Diffstat (limited to 'imageloader.c')
-rw-r--r-- | imageloader.c | 20 |
1 files changed, 20 insertions, 0 deletions
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; |