summaryrefslogtreecommitdiff
path: root/imagecache.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-12-23 13:49:58 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2022-04-29 12:08:51 +0200
commite2d67769dcb0e235a9b1d501970f6f57958146e5 (patch)
treed1b820cb35ad029ec277f41007092c1c2fa9adbd /imagecache.c
parent936db4a0876f281a7b5f80deb02e70a8fe860f8c (diff)
downloadvdr-plugin-tvguide-e2d67769dcb0e235a9b1d501970f6f57958146e5.tar.gz
vdr-plugin-tvguide-e2d67769dcb0e235a9b1d501970f6f57958146e5.tar.bz2
Changed the size and location of the channel logos to better fit in place
This leads to a better positioning of the channel logos if they are displayed in the EPG grid
Diffstat (limited to 'imagecache.c')
-rw-r--r--imagecache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/imagecache.c b/imagecache.c
index 9b5473c..8d3e182 100644
--- a/imagecache.c
+++ b/imagecache.c
@@ -357,7 +357,7 @@ cImage *cImageCache::GetLogo(const cChannel *channel) {
delete tempStaticLogo;
tempStaticLogo = NULL;
}
- tempStaticLogo = CreateImage(geoManager.logoWidth, geoManager.logoHeight);
+ tempStaticLogo = CreateImage(geoManager.logoWidth * 0.8, geoManager.logoHeight * 0.8);
return tempStaticLogo;
} else {
//add requested logo to cache
@@ -609,7 +609,7 @@ bool cImageCache::LoadLogo(const cChannel *channel) {
}
void cImageCache::InsertIntoLogoCache(std::string channelID) {
- cImage *image = CreateImage(geoManager.logoWidth, geoManager.logoHeight);
+ cImage *image = CreateImage(geoManager.logoWidth * 0.8, geoManager.logoHeight * 0.8);
logoCache.insert(std::pair<std::string, cImage*>(channelID, image));
}