diff options
Diffstat (limited to 'imagecache.c')
-rw-r--r-- | imagecache.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/imagecache.c b/imagecache.c index e7db262..f62873a 100644 --- a/imagecache.c +++ b/imagecache.c @@ -23,7 +23,7 @@ cImageCache::~cImageCache() { void cImageCache::CreateCache(void) { //Menu Icons std::vector<std::pair<std::string, cPoint> > menuIcons = GetMenuIcons(); - for (int i=0; i < menuIcons.size(); i++) { + for (long unsigned int i = 0; i < menuIcons.size(); i++) { std::string iconName = menuIcons[i].first; cPoint iconSize = menuIcons[i].second; bool success = LoadIcon(ctMenuIcon, iconName); @@ -32,7 +32,7 @@ void cImageCache::CreateCache(void) { } //Skin Icons std::vector<std::pair<std::string, sImgProperties> > skinIcons = GetSkinIcons(); - for (int i=0; i < skinIcons.size(); i++) { + for (long unsigned int i = 0; i < skinIcons.size(); i++) { std::string iconName = skinIcons[i].first; sImgProperties iconProps = skinIcons[i].second; bool success = LoadIcon(ctSkinIcon, iconName); @@ -144,7 +144,7 @@ cImage *cImageCache::GetLogo(eCacheType type, const cChannel *channel) { } else { bool success = LoadLogo(channel); if (success) { - if (config.GetValue("limitLogoCache") && (cache->size() >= config.GetValue("numLogosMax"))) { + if (config.GetValue("limitLogoCache") && (cache->size() >= (long unsigned int)config.GetValue("numLogosMax"))) { //logo cache is full, don't cache anymore cPoint logoSize = LogoSize(type); int width = logoSize.X(); @@ -239,7 +239,7 @@ std::vector<std::pair<std::string, cPoint> > cImageCache::GetMenuIcons(void) { mainMenuIcons.push_back("menuIcons/Plugins"); mainMenuIcons.push_back("menuIcons/Restart"); int mainMenuIconSize = geoManager->menuMainMenuIconSize; - for (int i=0; i<mainMenuIcons.size(); i++) { + for (long unsigned int i = 0; i < mainMenuIcons.size(); i++) { menuIcons.push_back(std::pair<std::string, cPoint>(mainMenuIcons[i], cPoint(mainMenuIconSize, mainMenuIconSize))); } @@ -284,7 +284,7 @@ std::vector<std::pair<std::string, sImgProperties> > cImageCache::GetSkinIcons(v props.width = geoManager->menuHeaderHeight-2; props.height = geoManager->menuHeaderHeight-2; props.preserveAspect = true; - for (int i=0; i<menuHeaderIcons.size(); i++) { + for (long unsigned int i = 0; i < menuHeaderIcons.size(); i++) { skinIcons.push_back(std::pair<std::string, sImgProperties>(menuHeaderIcons[i], props)); } |