framebuffer_ng: implement showFrame() und stopFrame()

This commit is contained in:
Stefan Seyfried
2015-12-13 18:23:28 +01:00
parent e8ff0c7d09
commit fa2acb0e44
2 changed files with 19 additions and 0 deletions

View File

@@ -1366,3 +1366,21 @@ void CFrameBuffer::mark(int x, int y, int dx, int dy)
{
accel->mark(x, y, dx, dy);
};
/* argh. really not the right thing to do here... */
extern cVideo *videoDecoder;
void CFrameBuffer::showFrame(const std::string & filename)
{
std::string picture = ICONSDIR_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());
}
void CFrameBuffer::stopFrame()
{
videoDecoder->StopPicture();
}

View File

@@ -246,6 +246,7 @@ class CFrameBuffer
void Clear();
void showFrame(const std::string & filename);
void stopFrame();
bool loadBackgroundPic(const std::string & filename, bool show = true);
bool Lock(void);
void Unlock(void);