From c057102d9d7ac37ab6b83b3c811827eca3f0307b Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 3 Nov 2013 14:14:45 +0100 Subject: changed header icons to scale automatically --- imagecache.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'imagecache.c') diff --git a/imagecache.c b/imagecache.c index 111cf20..2e6e0cb 100644 --- a/imagecache.c +++ b/imagecache.c @@ -243,6 +243,7 @@ std::vector > cImageCache::GetMenuIcons(void) { for (int i=0; i(mainMenuIcons[i], cPoint(mainMenuIconSize, mainMenuIconSize))); } + //Plugin Icons for (int i = 0; ; i++) { cPlugin *p = cPluginManager::GetPlugin(i); @@ -260,8 +261,8 @@ std::vector > cImageCache::GetSkinIcons(v std::vector > 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("skinIcons/vdrlogo", props)); //DiskUsage @@ -281,8 +282,8 @@ std::vector > 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[i], props)); -- cgit v1.2.3