src/driver/fb_generic.cpp/h: use methode showFrame() as bool function

Allows the evaluation of this function for conditions if needed.


Origin commit data
------------------
Commit: ecb1190014
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-10-03 (Wed, 03 Oct 2018)
This commit is contained in:
2018-10-03 18:01:22 +02:00
committed by vanhofen
parent a005814d8a
commit f4e1fe88c2
2 changed files with 10 additions and 3 deletions

View File

@@ -1538,10 +1538,17 @@ void CFrameBuffer::Clear()
//memset(getFrameBufferPointer(), 0, stride * yRes);
}
void CFrameBuffer::showFrame(const std::string & filename)
bool CFrameBuffer::showFrame(const std::string & filename)
{
std::string picture = getIconPath(filename, "");
videoDecoder->ShowPicture(picture.c_str());
if (access(picture.c_str(), F_OK) == 0){
videoDecoder->ShowPicture(picture.c_str());
return true;
}
else
printf("[CFrameBuffer]\[%s - %d], image not found: %s\n", __func__, __LINE__, picture.c_str());
return false;
}
void CFrameBuffer::stopFrame()