diff options
author | louis <louis.braun@gmx.de> | 2013-11-03 14:14:45 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-11-03 14:14:45 +0100 |
commit | c057102d9d7ac37ab6b83b3c811827eca3f0307b (patch) | |
tree | 1739672d04e8e4261ae4c2597c64da53f1551c3c /imagecache.c | |
parent | fa1a833f2d4597372eb82cad8f9c187990249a35 (diff) | |
download | skin-nopacity-c057102d9d7ac37ab6b83b3c811827eca3f0307b.tar.gz skin-nopacity-c057102d9d7ac37ab6b83b3c811827eca3f0307b.tar.bz2 |
changed header icons to scale automatically
Diffstat (limited to 'imagecache.c')
-rw-r--r-- | imagecache.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/imagecache.c b/imagecache.c index 111cf20..2e6e0cb 100644 --- a/imagecache.c +++ b/imagecache.c @@ -243,6 +243,7 @@ std::vector<std::pair<std::string, cPoint> > cImageCache::GetMenuIcons(void) { for (int i=0; i<mainMenuIcons.size(); i++) { menuIcons.push_back(std::pair<std::string, cPoint>(mainMenuIcons[i], cPoint(mainMenuIconSize, mainMenuIconSize))); } + //Plugin Icons for (int i = 0; ; i++) { cPlugin *p = cPluginManager::GetPlugin(i); @@ -260,8 +261,8 @@ std::vector<std::pair<std::string, sImgProperties> > cImageCache::GetSkinIcons(v std::vector<std::pair<std::string, sImgProperties> > skinIcons; //VDR Logo sImgProperties props; - props.width = config.GetValue("menuHeaderLogoWidth"); - props.height = config.GetValue("menuHeaderLogoWidth"); + props.width = geoManager->menuHeaderVDRLogoWidth; + props.height = geoManager->menuHeaderHeight; props.preserveAspect = true; skinIcons.push_back(std::pair<std::string, sImgProperties>("skinIcons/vdrlogo", props)); //DiskUsage @@ -281,8 +282,8 @@ std::vector<std::pair<std::string, sImgProperties> > cImageCache::GetSkinIcons(v menuHeaderIcons.push_back("menuIcons/Recordings"); menuHeaderIcons.push_back("menuIcons/Setup"); menuHeaderIcons.push_back("menuIcons/Commands"); - props.width = config.GetValue("headerIconHeight"); - props.height = config.GetValue("headerIconHeight"); + props.width = geoManager->menuHeaderHeight-2; + props.height = geoManager->menuHeaderHeight-2; props.preserveAspect = true; for (int i=0; i<menuHeaderIcons.size(); i++) { skinIcons.push_back(std::pair<std::string, sImgProperties>(menuHeaderIcons[i], props)); |