mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +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.
Origin commit data
------------------
Commit: f47bbbfe7b
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-09-01 (Sat, 01 Sep 2018)
This commit is contained in:
@@ -1540,12 +1540,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