mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
icons: add rating-stars to icons.h; version 2.0
Origin commit data
------------------
Commit: 76928f97a1
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-05-29 (Mon, 29 May 2017)
Origin message was:
------------------
- icons: add rating-stars to icons.h; version 2.0
This commit is contained in:
@@ -547,24 +547,8 @@ void CProgressBar::paintGraphic()
|
||||
//NI starbar
|
||||
void CProgressBar::paintStarBar()
|
||||
{
|
||||
std::ostringstream buf;
|
||||
graphic_file = "stars";
|
||||
|
||||
buf.str("");
|
||||
buf << ICONSDIR_VAR << "/" << graphic_file << ".png";
|
||||
if (access(buf.str().c_str(), F_OK) != 0) {
|
||||
buf.str("");
|
||||
buf << ICONSDIR << "/" << graphic_file << ".png";
|
||||
}
|
||||
std::string pb_active_graphic(buf.str());
|
||||
|
||||
buf.str("");
|
||||
buf << ICONSDIR_VAR << "/" << graphic_file << "_bg.png";
|
||||
if (access(buf.str().c_str(), F_OK) != 0) {
|
||||
buf.str("");
|
||||
buf << ICONSDIR << "/" << graphic_file << "_bg.png";
|
||||
}
|
||||
std::string pb_passive_graphic(buf.str());
|
||||
std::string pb_active_graphic(frameBuffer->getIconPath(NEUTRINO_ICON_STARS));
|
||||
std::string pb_passive_graphic(frameBuffer->getIconPath(NEUTRINO_ICON_STARS_BG));
|
||||
|
||||
int stars_w = 0, stars_h = 0;
|
||||
g_PicViewer->getSize(pb_passive_graphic.c_str(), &stars_w, &stars_h);
|
||||
|
Reference in New Issue
Block a user