Screensaver: try to fix background

Ensure to have blank background before paint screensaver content.
This should avoid possible holes with some images.
This commit is contained in:
2018-05-17 16:26:39 +02:00
parent c8f27fb63b
commit 18a4ae0098
3 changed files with 2 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -3,6 +3,7 @@ installdir = $(ICONSDIR)
resolution = 1280x720 resolution = 1280x720
install_DATA = \ install_DATA = \
$(resolution)/blackscreen.jpg \
$(resolution)/mp3.jpg \ $(resolution)/mp3.jpg \
$(resolution)/radiomode.jpg \ $(resolution)/radiomode.jpg \
$(resolution)/scan.jpg \ $(resolution)/scan.jpg \

View File

@@ -108,7 +108,6 @@ void CScreenSaver::Start()
m_viewer->SetAspectRatio(float(4.0/3)); m_viewer->SetAspectRatio(float(4.0/3));
m_viewer->Cleanup(); m_viewer->Cleanup();
m_frameBuffer->stopFrame(); m_frameBuffer->stopFrame();
if(!thrScreenSaver) if(!thrScreenSaver)
@@ -162,6 +161,7 @@ void* CScreenSaver::ScreenSaverPrg(void* arg)
PScreenSaver->ReadDir(); //TODO kill Screensaver if false PScreenSaver->ReadDir(); //TODO kill Screensaver if false
PScreenSaver->m_frameBuffer->Clear(); PScreenSaver->m_frameBuffer->Clear();
PScreenSaver->m_frameBuffer->showFrame("blackscreen.jpg");
if (g_settings.screensaver_timeout) if (g_settings.screensaver_timeout)
{ {