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:
2018-08-31 09:34:16 +02:00
parent 082b4bea2e
commit 8c145de053

View File

@@ -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());
}