mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
src/driver/fb_generic.cpp: unifiy path search in showFrame()
This allows to use same paths for images like for icons. Was a request, because images inside theme directories were not found. Thanks bellum for this hint.
This commit is contained in:
@@ -1548,12 +1548,7 @@ void CFrameBuffer::Clear()
|
||||
|
||||
void CFrameBuffer::showFrame(const std::string & filename)
|
||||
{
|
||||
std::string picture = std::string(ICONSDIR_VAR) + "/" + filename;
|
||||
if (access(picture.c_str(), F_OK))
|
||||
picture = iconBasePath + "/" + filename;
|
||||
if (filename.find("/", 0) != std::string::npos)
|
||||
picture = filename;
|
||||
|
||||
std::string picture = getIconPath(filename, "");
|
||||
videoDecoder->ShowPicture(picture.c_str());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user