mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
framebuffer: revival of showFrame() function to allow ...
... pictures like start.jpg, mp3.jpg etc. from /var/tuxbox/icons
Origin commit data
------------------
Branch: ni/coolstream
Commit: edc8527379
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-05-05 (Tue, 05 May 2015)
Origin message was:
------------------
- framebuffer: revival of showFrame() function to allow ...
... pictures like start.jpg, mp3.jpg etc. from /var/tuxbox/icons
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1797,17 +1797,23 @@ void CFrameBuffer::Clear()
|
||||
paintBackground();
|
||||
//memset(getFrameBufferPointer(), 0, stride * yRes);
|
||||
}
|
||||
#if 0
|
||||
//never used
|
||||
|
||||
void CFrameBuffer::showFrame(const std::string & filename)
|
||||
{
|
||||
std::string varpath = CONFIGDIR "/neutrino/icons/";
|
||||
if(!access((varpath + filename).c_str(), F_OK))
|
||||
videoDecoder->ShowPicture((varpath + filename).c_str());
|
||||
else
|
||||
videoDecoder->ShowPicture((iconBasePath + filename).c_str());
|
||||
std::string picture = std::string(ICONDIR_VAR) + filename;
|
||||
if (access(picture.c_str(), F_OK))
|
||||
picture = iconBasePath + filename;
|
||||
if (filename.find("/", 0) != std::string::npos)
|
||||
picture = filename;
|
||||
|
||||
videoDecoder->ShowPicture(picture.c_str());
|
||||
}
|
||||
#endif
|
||||
|
||||
void CFrameBuffer::stopFrame()
|
||||
{
|
||||
videoDecoder->StopPicture();
|
||||
}
|
||||
|
||||
bool CFrameBuffer::Lock()
|
||||
{
|
||||
if(locked)
|
||||
|
Reference in New Issue
Block a user