diff --git a/src/driver/framebuffer_ng.cpp b/src/driver/framebuffer_ng.cpp index 8d2e43b13..37e799697 100644 --- a/src/driver/framebuffer_ng.cpp +++ b/src/driver/framebuffer_ng.cpp @@ -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(); +} diff --git a/src/driver/framebuffer_ng.h b/src/driver/framebuffer_ng.h index deb43f20c..9ae02af58 100644 --- a/src/driver/framebuffer_ng.h +++ b/src/driver/framebuffer_ng.h @@ -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);