mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +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
Origin commit data
------------------
Branch: ni/coolstream
Commit: af5475df8c
Author: gixxpunk <thomas.harfmann@gmail.com>
Date: 2011-01-31 (Mon, 31 Jan 2011)
Origin message was:
------------------
- 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 was generated by Migit
This commit is contained in:
@@ -64,6 +64,9 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <video.h>
|
||||
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 );
|
||||
|
||||
|
Reference in New Issue
Block a user