Skip to content

Commit

Permalink
Screensaver: try to fix background
Browse files Browse the repository at this point in the history
Ensure to have blank background before paint screensaver content.
This should avoid possible holes with some images.
  • Loading branch information
dbt1 committed May 17, 2018
1 parent c8f27fb commit 18a4ae0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions data/pictures/backgrounds/Makefile.am
Expand Up @@ -3,6 +3,7 @@ installdir = $(ICONSDIR)
resolution = 1280x720

install_DATA = \
$(resolution)/blackscreen.jpg \
$(resolution)/mp3.jpg \
$(resolution)/radiomode.jpg \
$(resolution)/scan.jpg \
Expand Down
2 changes: 1 addition & 1 deletion src/gui/screensaver.cpp
Expand Up @@ -108,7 +108,6 @@ void CScreenSaver::Start()
m_viewer->SetAspectRatio(float(4.0/3));

m_viewer->Cleanup();

m_frameBuffer->stopFrame();

if(!thrScreenSaver)
Expand Down Expand Up @@ -162,6 +161,7 @@ void* CScreenSaver::ScreenSaverPrg(void* arg)

PScreenSaver->ReadDir(); //TODO kill Screensaver if false
PScreenSaver->m_frameBuffer->Clear();
PScreenSaver->m_frameBuffer->showFrame("blackscreen.jpg");

if (g_settings.screensaver_timeout)
{
Expand Down

0 comments on commit 18a4ae0

Please sign in to comment.