- framebuffer: revival of showFrame() function to allow ...

... pictures like start.jpg, mp3.jpg etc. from /var/tuxbox/icons
This commit is contained in:
svenhoefer
2015-05-05 12:01:04 +02:00
parent ca5d85986e
commit edc8527379
10 changed files with 43 additions and 36 deletions

View File

@@ -286,7 +286,7 @@ int CAudioPlayerGui::exec(CMenuTarget* parent, const std::string &actionKey)
// set zapit in lock mode
CNeutrinoApp::getInstance()->stopPlayBack(true);
videoDecoder->ShowPicture(DATADIR "/neutrino/icons/mp3.jpg");
m_frameBuffer->showFrame("mp3.jpg");
// tell neutrino we're in audio mode
m_LastMode = CNeutrinoApp::getInstance()->getMode();
@@ -315,7 +315,7 @@ int CAudioPlayerGui::exec(CMenuTarget* parent, const std::string &actionKey)
CZapit::getInstance()->EnablePlayback(true);
// Start Sectionsd
g_Sectionsd->setPauseScanning(false);
videoDecoder->StopPicture();
m_frameBuffer->stopFrame();
CNeutrinoApp::getInstance()->handleMsg( NeutrinoMessages::CHANGEMODE , m_LastMode );
g_RCInput->postMsg( NeutrinoMessages::SHOW_INFOBAR, 0 );
@@ -386,8 +386,8 @@ int CAudioPlayerGui::show()
{
screensaver(false);
videoDecoder->StopPicture();
videoDecoder->ShowPicture(DATADIR "/neutrino/icons/mp3.jpg");
m_frameBuffer->stopFrame();
m_frameBuffer->showFrame("mp3.jpg");
paint();
if (msg <= CRCInput::RC_MaxRC) {
@@ -706,7 +706,7 @@ int CAudioPlayerGui::show()
{
pictureviewer = true;
m_frameBuffer->Clear();
videoDecoder->StopPicture();
m_frameBuffer->stopFrame();
CPictureViewerGui * picture = new CPictureViewerGui();
picture->m_audioPlayer = this;
picture->exec(this, "audio");
@@ -714,7 +714,7 @@ int CAudioPlayerGui::show()
pictureviewer = false;
screensaver(false);
videoDecoder->setBlank(true);
videoDecoder->ShowPicture(DATADIR "/neutrino/icons/mp3.jpg");
m_frameBuffer->showFrame("mp3.jpg");
CVFD::getInstance()->setMode(CVFD::MODE_AUDIO);
paintLCD();
update = true;