summaryrefslogtreecommitdiff
path: root/imageloader.c
diff options
context:
space:
mode:
Diffstat (limited to 'imageloader.c')
-rw-r--r--imageloader.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/imageloader.c b/imageloader.c
index ac3dbf8..2faeb91 100644
--- a/imageloader.c
+++ b/imageloader.c
@@ -41,7 +41,11 @@ bool cImageLoader::LoadLogo(const cChannel *channel, int width, int height) {
bool cImageLoader::LoadEPGImage(int eventID, int width, int height) {
if ((width == 0)||(height==0))
return false;
- if (!LoadImage(*cString::sprintf("%d", eventID), *tvguideConfig.epgImagePath, "jpg"))
+ bool success = false;
+ success = LoadImage(*cString::sprintf("%d", eventID), *tvguideConfig.epgImagePath, "jpg");
+ if (!success)
+ success = LoadImage(*cString::sprintf("%d_0", eventID), *tvguideConfig.epgImagePath, "jpg");
+ if (!success)
return false;
buffer.sample( Geometry(width, height));
return true;