summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-11-01 14:08:59 +0100
committerlouis <louis.braun@gmx.de>2013-11-01 14:08:59 +0100
commit18518f3cf10874cc4ce5c2f58f8aec6b645b40c8 (patch)
tree06683c596512cee290d9b1adad61e60b3c8da4c3
parent173a2a7d868a4ce5d2355e30ffe7bd6a2e486007 (diff)
downloadskin-nopacity-18518f3cf10874cc4ce5c2f58f8aec6b645b40c8.tar.gz
skin-nopacity-18518f3cf10874cc4ce5c2f58f8aec6b645b40c8.tar.bz2
Searching for epgimages named eventID.jpg and eventID_0.jpg in detailed epg view
-rw-r--r--HISTORY2
-rw-r--r--imageloader.c6
2 files changed, 8 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index ae00aa2..fd17ab9 100644
--- a/HISTORY
+++ b/HISTORY
@@ -326,3 +326,5 @@ Version 0.1.4
the channel
- Cleaned up pixmaps in menuitems
- Avoided font pixelation on default menu items
+- Searching for epgimages named eventID.jpg and eventID_0.jpg in detailed
+ epg view
diff --git a/imageloader.c b/imageloader.c
index 5a9d2c0..437030e 100644
--- a/imageloader.c
+++ b/imageloader.c
@@ -55,6 +55,12 @@ bool cImageLoader::LoadEPGImage(int eventID) {
if (!success) {
success = LoadImage(*cString::sprintf("%d", eventID), *config.epgImagePathDefault, "jpg");
}
+ if (!success && config.epgImagePathSet) {
+ success = LoadImage(*cString::sprintf("%d_0", eventID), *config.epgImagePath, "jpg");
+ }
+ if (!success) {
+ success = LoadImage(*cString::sprintf("%d_0", eventID), *config.epgImagePathDefault, "jpg");
+ }
if (!success)
return false;
if (height != 0 || width != 0) {