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:
2018-09-01 14:34:24 +02:00
committed by vanhofen
parent aeed0a83af
commit 1b5f90384a

View File

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