From af5475df8cb6632f754d1aa861b4e4d60a8fd1f9 Mon Sep 17 00:00:00 2001 From: striper Date: Mon, 31 Jan 2011 19:32:38 +0000 Subject: [PATCH] - 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 --- src/gui/pictureviewer.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/gui/pictureviewer.cpp b/src/gui/pictureviewer.cpp index 7e1823694..fb7bf1417 100644 --- a/src/gui/pictureviewer.cpp +++ b/src/gui/pictureviewer.cpp @@ -64,6 +64,9 @@ #include #include +#include +extern cVideo * videoDecoder; + //------------------------------------------------------------------------ bool comparePictureByDate (const CPicture& a, const CPicture& b) { @@ -155,16 +158,40 @@ int CPictureViewerGui::exec(CMenuTarget* parent, const std::string & /*actionKey // remember last mode 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); + // Save and Clear background + bool usedBackground = frameBuffer->getuseBackground(); + if (usedBackground) { + frameBuffer->saveBackgroundImage(); + frameBuffer->Clear(); + } + show(); // free picviewer mem m_viewer->Cleanup(); + //g_Zapit->setStandby(false); + g_Zapit->unlockPlayBack(); + // Start Sectionsd g_Sectionsd->setPauseScanning(false); + // Restore previous background + if (usedBackground) { + frameBuffer->restoreBackgroundImage(); + frameBuffer->useBackground(true); + frameBuffer->paintBackground(); + } + // Restore last mode CNeutrinoApp::getInstance()->handleMsg( NeutrinoMessages::CHANGEMODE , m_LastMode );