mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
- fix pictureviewer background / THX to wittinobi
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1099 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -64,6 +64,9 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
|
#include <video.h>
|
||||||
|
extern cVideo * videoDecoder;
|
||||||
|
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
bool comparePictureByDate (const CPicture& a, const CPicture& b)
|
bool comparePictureByDate (const CPicture& a, const CPicture& b)
|
||||||
{
|
{
|
||||||
@@ -155,16 +158,40 @@ int CPictureViewerGui::exec(CMenuTarget* parent, const std::string & /*actionKey
|
|||||||
// remember last mode
|
// remember last mode
|
||||||
m_LastMode=(CNeutrinoApp::getInstance()->getLastMode() | NeutrinoMessages::norezap);
|
m_LastMode=(CNeutrinoApp::getInstance()->getLastMode() | NeutrinoMessages::norezap);
|
||||||
|
|
||||||
|
//g_Zapit->setStandby(true);
|
||||||
|
g_Zapit->lockPlayBack();
|
||||||
|
|
||||||
|
// blank background screen
|
||||||
|
videoDecoder->setBlank(true);
|
||||||
|
|
||||||
|
// Stop Sectionsd
|
||||||
g_Sectionsd->setPauseScanning(true);
|
g_Sectionsd->setPauseScanning(true);
|
||||||
|
|
||||||
|
// Save and Clear background
|
||||||
|
bool usedBackground = frameBuffer->getuseBackground();
|
||||||
|
if (usedBackground) {
|
||||||
|
frameBuffer->saveBackgroundImage();
|
||||||
|
frameBuffer->Clear();
|
||||||
|
}
|
||||||
|
|
||||||
show();
|
show();
|
||||||
|
|
||||||
// free picviewer mem
|
// free picviewer mem
|
||||||
m_viewer->Cleanup();
|
m_viewer->Cleanup();
|
||||||
|
|
||||||
|
//g_Zapit->setStandby(false);
|
||||||
|
g_Zapit->unlockPlayBack();
|
||||||
|
|
||||||
// Start Sectionsd
|
// Start Sectionsd
|
||||||
g_Sectionsd->setPauseScanning(false);
|
g_Sectionsd->setPauseScanning(false);
|
||||||
|
|
||||||
|
// Restore previous background
|
||||||
|
if (usedBackground) {
|
||||||
|
frameBuffer->restoreBackgroundImage();
|
||||||
|
frameBuffer->useBackground(true);
|
||||||
|
frameBuffer->paintBackground();
|
||||||
|
}
|
||||||
|
|
||||||
// Restore last mode
|
// Restore last mode
|
||||||
CNeutrinoApp::getInstance()->handleMsg( NeutrinoMessages::CHANGEMODE , m_LastMode );
|
CNeutrinoApp::getInstance()->handleMsg( NeutrinoMessages::CHANGEMODE , m_LastMode );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user