summaryrefslogtreecommitdiff
path: root/libcore
diff options
context:
space:
mode:
authorManuel Reimer <manuel.reimer@gmx.de>2014-11-12 17:05:36 +0100
committerManuel Reimer <manuel.reimer@gmx.de>2014-11-12 17:05:36 +0100
commit7a69d868c422218817f1c92a6666ee6c83825d23 (patch)
tree2715f8950feb361ab1283f4140c213e506feeb6e /libcore
parentd7aa09fec3c9560edf218b5d0c3badd9d2db5972 (diff)
downloadvdr-plugin-skindesigner-7a69d868c422218817f1c92a6666ee6c83825d23.tar.gz
vdr-plugin-skindesigner-7a69d868c422218817f1c92a6666ee6c83825d23.tar.bz2
Added support for SVG separatorlogos
Diffstat (limited to 'libcore')
-rw-r--r--libcore/imagecache.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libcore/imagecache.c b/libcore/imagecache.c
index 7eabbca..369322e 100644
--- a/libcore/imagecache.c
+++ b/libcore/imagecache.c
@@ -151,7 +151,8 @@ bool cImageCache::SeparatorLogoExists(string name) {
string separatorPath = *cString::sprintf("%sseparatorlogos/", logoPath.c_str());
string nameLower = StrToLowerCase(name.c_str());
- return FileExists(separatorPath, nameLower, "png");
+ return (FileExists(separatorPath, nameLower, "svg") ||
+ FileExists(separatorPath, nameLower, "png"));
}
void cImageCache::CacheIcon(eImageType type, string name, int width, int height) {
@@ -336,7 +337,10 @@ bool cImageCache::LoadLogo(const cChannel *channel) {
bool cImageCache::LoadSeparatorLogo(string name) {
string separatorPath = *cString::sprintf("%sseparatorlogos/", logoPath.c_str());
string nameLower = StrToLowerCase(name.c_str());
- return LoadImage(separatorPath, nameLower.c_str(), "png");
+ if (FileExists(separatorPath, nameLower.c_str(), "svg"))
+ return LoadImage(separatorPath, nameLower.c_str(), "svg");
+ else
+ return LoadImage(separatorPath, nameLower.c_str(), "png");
}
bool cImageCache::LoadSkinpart(string name) {