diff options
author | louis <louis.braun@gmx.de> | 2013-12-29 18:13:45 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-12-29 18:13:45 +0100 |
commit | eede61ade5b226480ebbe1e29235df58170a24bd (patch) | |
tree | 72098ad56f9d6902eeee75bc5fb4d5d02eb84340 /imageloader.c | |
parent | 06ed8b3567bee43f47659b17baf084fed352ddb4 (diff) | |
download | vdr-plugin-tvguide-eede61ade5b226480ebbe1e29235df58170a24bd.tar.gz vdr-plugin-tvguide-eede61ade5b226480ebbe1e29235df58170a24bd.tar.bz2 |
Added possibility to search for reruns in case of a timer conflict
Diffstat (limited to 'imageloader.c')
-rw-r--r-- | imageloader.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/imageloader.c b/imageloader.c index d194295..8b913ea 100644 --- a/imageloader.c +++ b/imageloader.c @@ -77,8 +77,13 @@ bool cImageLoader::LoadPoster(const char *poster, int width, int height) { bool cImageLoader::LoadIcon(const char *cIcon, int size) { if (size==0) return false; + cString iconPathTheme = cString::sprintf("%s%s/recmenuicons/", *tvguideConfig.iconPath, *tvguideConfig.themeName); bool success = false; - success = LoadImage(cIcon, *tvguideConfig.iconPath, "png"); + success = LoadImage(cIcon, *iconPathTheme, "png"); + if (!success) { + cString iconPathdefault = cString::sprintf("%s/recmenuicons/", *tvguideConfig.iconPath); + success = LoadImage(cIcon, *iconPathdefault, "png"); + } if (!success) return false; buffer.sample(Geometry(size, size)); |