diff --git a/src/gui/epgview.cpp b/src/gui/epgview.cpp index a98c80ecc..3177d3601 100644 --- a/src/gui/epgview.cpp +++ b/src/gui/epgview.cpp @@ -321,7 +321,7 @@ void CEpgData::showText(int startPos, int ypos, bool has_cover, bool fullClear) stars *= 10; // recalculate stars value for starbar int stars_w = 0, stars_h = 0; - g_PicViewer->getSize(NEUTRINO_ICON_STARS_BG, &stars_w, &stars_h); + g_PicViewer->getSize(imdb->stars_bg.c_str(), &stars_w, &stars_h); //create starbar item CProgressBar *cc_starbar = new CProgressBar(); diff --git a/src/gui/imdb.cpp b/src/gui/imdb.cpp index 98aaf837f..8ecbbf670 100644 --- a/src/gui/imdb.cpp +++ b/src/gui/imdb.cpp @@ -48,6 +48,8 @@ CIMDB::CIMDB() IMDbAPI = "/tmp/imdb.json"; omdbapiKey = "&apikey=20711f9e"; posterfile = "/tmp/imdb.jpg"; + stars_bg = ICONSDIR "/stars_bg.png"; + stars = ICONSDIR "/stars.png"; } CIMDB::~CIMDB() diff --git a/src/gui/imdb.h b/src/gui/imdb.h index cccb86465..0e532ac02 100644 --- a/src/gui/imdb.h +++ b/src/gui/imdb.h @@ -41,6 +41,8 @@ class CIMDB std::string soutfile; std::string IMDbAPI; std::string posterfile; + std::string stars_bg; + std::string stars; int getIMDb(const std::string& epgTitle); std::string getFilename(CZapitChannel * channel, uint64_t id); diff --git a/src/gui/widget/icons.h b/src/gui/widget/icons.h index 90b43fed5..345a9d041 100644 --- a/src/gui/widget/icons.h +++ b/src/gui/widget/icons.h @@ -183,8 +183,6 @@ #define NEUTRINO_ICON_PIP "pip" #define NEUTRINO_ICON_STAR_ON "star-on" #define NEUTRINO_ICON_STAR_OFF "star-off" -#define NEUTRINO_ICON_STARS_BG "stars_bg.png" //NI -#define NEUTRINO_ICON_STARS "stars.png" //NI #define NEUTRINO_ICON_TMDB "tmdb" #define NEUTRINO_ICON_IMDB "imdb" #define NEUTRINO_ICON_PICTUREVIEWER "pictureviewer"