mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CFrameBuffer: Fix paintIcon() for use icons with full path
Origin commit data
------------------
Commit: a4fdd17407
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-10-06 (Mon, 06 Oct 2014)
This commit is contained in:
committed by
[CST] Focus
parent
749d5a20a7
commit
19fc9e2a48
@@ -1066,6 +1066,8 @@ bool CFrameBuffer::paintIcon(const std::string & filename, const int x, const in
|
||||
std::string newname = std::string(ICONDIR_VAR) + filename + ".png";
|
||||
if (access(newname.c_str(), F_OK))
|
||||
newname = iconBasePath + filename + ".png";
|
||||
if (filename.find("/", 0) != std::string::npos)
|
||||
newname = filename;
|
||||
//printf("CFrameBuffer::paintIcon: check for %s\n", newname.c_str());fflush(stdout);
|
||||
|
||||
data = g_PicViewer->getIcon(newname, &width, &height);
|
||||
|
Reference in New Issue
Block a user