mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CAudioPlayerGui:try to fix infocklock view in audioplayer.
after closed screensaver, infoclock was painted. That looks not good. This should fix this.
This commit is contained in:
@@ -69,7 +69,7 @@
|
|||||||
#include <gui/screensaver.h>
|
#include <gui/screensaver.h>
|
||||||
#include "gui/pictureviewer.h"
|
#include "gui/pictureviewer.h"
|
||||||
extern CPictureViewer * g_PicViewer;
|
extern CPictureViewer * g_PicViewer;
|
||||||
|
#include <gui/infoclock.h>
|
||||||
#include <system/settings.h>
|
#include <system/settings.h>
|
||||||
#include <system/helpers.h>
|
#include <system/helpers.h>
|
||||||
#include <driver/screen_max.h>
|
#include <driver/screen_max.h>
|
||||||
@@ -334,7 +334,8 @@ int CAudioPlayerGui::show()
|
|||||||
|
|
||||||
// clear whole screen
|
// clear whole screen
|
||||||
m_frameBuffer->paintBackground();
|
m_frameBuffer->paintBackground();
|
||||||
|
CInfoClock::getInstance()->block();
|
||||||
|
CScreenSaver::getInstance()->OnAfterStop.connect(sigc::mem_fun(CInfoClock::getInstance(), &CInfoClock::block));
|
||||||
CVFD::getInstance()->setMode(CVFD::MODE_AUDIO);
|
CVFD::getInstance()->setMode(CVFD::MODE_AUDIO);
|
||||||
paintLCD();
|
paintLCD();
|
||||||
|
|
||||||
@@ -848,7 +849,8 @@ int CAudioPlayerGui::show()
|
|||||||
|
|
||||||
if (m_state != CAudioPlayerGui::STOP)
|
if (m_state != CAudioPlayerGui::STOP)
|
||||||
stop();
|
stop();
|
||||||
|
CInfoClock::getInstance()->enableInfoClock(CInfoClock::getInstance()->isRun());
|
||||||
|
CScreenSaver::getInstance()->OnAfterStop.clear();
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user