mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
framebuffer_ng: use global ICONSDIR_VAR
this implements CFrameBuffer part of commite33323d5b
("fix and use ICONSDIR variable; move ICONSSDIR_VAR to global.h") Origin commit data ------------------ Branch: ni/coolstream Commit:a775af135a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de> Date: 2015-12-13 (Sun, 13 Dec 2015) ------------------ This commit was generated by Migit
This commit is contained in:
@@ -59,7 +59,6 @@ extern int gfxfd;
|
||||
|
||||
extern CPictureViewer * g_PicViewer;
|
||||
#define ICON_CACHE_SIZE 1024*1024*2 // 2mb
|
||||
#define ICONDIR_VAR "/var/tuxbox/icons/"
|
||||
|
||||
#define BACKGROUNDIMAGEWIDTH 720
|
||||
|
||||
@@ -816,7 +815,7 @@ bool CFrameBuffer::paintIcon(const std::string & filename, const int x, const in
|
||||
std::string newname = filename;
|
||||
/* if it is not an absolute path, search in configured paths */
|
||||
if (filename.find("/", 0) == std::string::npos) {
|
||||
newname = ICONDIR_VAR + filename + ".png";
|
||||
newname = ICONSDIR_VAR + filename + ".png";
|
||||
if (access(newname.c_str(), F_OK))
|
||||
newname = iconBasePath + filename + ".png";
|
||||
}
|
||||
@@ -838,7 +837,7 @@ bool CFrameBuffer::paintIcon(const std::string & filename, const int x, const in
|
||||
goto _display;
|
||||
}
|
||||
|
||||
newname = ICONDIR_VAR + filename + ".raw";
|
||||
newname = ICONSDIR_VAR + filename + ".raw";
|
||||
if (access(newname.c_str(), F_OK))
|
||||
newname = iconBasePath + filename + ".raw";
|
||||
|
||||
|
Reference in New Issue
Block a user