mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
framebuffer_ng: implement showFrame() und stopFrame()
This commit is contained in:
@@ -1366,3 +1366,21 @@ void CFrameBuffer::mark(int x, int y, int dx, int dy)
|
|||||||
{
|
{
|
||||||
accel->mark(x, y, dx, 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();
|
||||||
|
}
|
||||||
|
@@ -246,6 +246,7 @@ class CFrameBuffer
|
|||||||
|
|
||||||
void Clear();
|
void Clear();
|
||||||
void showFrame(const std::string & filename);
|
void showFrame(const std::string & filename);
|
||||||
|
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);
|
||||||
void Unlock(void);
|
void Unlock(void);
|
||||||
|
Reference in New Issue
Block a user