mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
src/driver/fb_generic.cpp/h: use methode showFrame() as bool function
Allows the evaluation of this function for conditions if needed.
This commit is contained in:
@@ -1546,10 +1546,17 @@ void CFrameBuffer::Clear()
|
|||||||
//memset(getFrameBufferPointer(), 0, stride * yRes);
|
//memset(getFrameBufferPointer(), 0, stride * yRes);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CFrameBuffer::showFrame(const std::string & filename)
|
bool CFrameBuffer::showFrame(const std::string & filename)
|
||||||
{
|
{
|
||||||
std::string picture = getIconPath(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()
|
void CFrameBuffer::stopFrame()
|
||||||
|
@@ -266,7 +266,7 @@ class CFrameBuffer : public sigc::trackable
|
|||||||
void RestoreScreen(int x, int y, int dx, int dy, fb_pixel_t * const memp);
|
void RestoreScreen(int x, int y, int dx, int dy, fb_pixel_t * const memp);
|
||||||
|
|
||||||
void Clear();
|
void Clear();
|
||||||
void showFrame(const std::string & filename);
|
bool showFrame(const std::string & filename);
|
||||||
void stopFrame();
|
void stopFrame();
|
||||||
bool loadBackgroundPic(const std::string & filename, bool show = true);
|
bool loadBackgroundPic(const std::string & filename, bool show = true);
|
||||||
bool Lock(void);
|
bool Lock(void);
|
||||||
|
Reference in New Issue
Block a user