glcd: re-add 1df9f7b; do always show startup logo

Origin commit data
------------------
Branch: ni/coolstream
Commit: 0baafbc9d0
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-06-21 (Sun, 21 Jun 2020)

Origin message was:
------------------
- glcd: re-add 1df9f7b; do always show startup logo

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2020-06-21 22:19:57 +02:00
parent 255b1ec2e0
commit 76f98dc38b

View File

@@ -199,9 +199,7 @@ void cGLCD::Exec()
bitmap->Clear(ColorConvert3to1(t.glcd_color_bg_red, t.glcd_color_bg_green, t.glcd_color_bg_blue)); bitmap->Clear(ColorConvert3to1(t.glcd_color_bg_red, t.glcd_color_bg_green, t.glcd_color_bg_blue));
if (Channel == "Neutrino") if (Channel.compare("Neutrino") == 0)
{
if (g_settings.glcd_show_logo)
{ {
if (imageShow(DATADIR "/neutrino/icons/start.jpg", 0, 0, 0, 0, false, true, true, false, false)) if (imageShow(DATADIR "/neutrino/icons/start.jpg", 0, 0, 0, 0, false, true, true, false, false))
{ {
@@ -218,7 +216,8 @@ void cGLCD::Exec()
lcd->SetScreen(bitmap->Data(), bitmap->Width(), bitmap->Height()); lcd->SetScreen(bitmap->Data(), bitmap->Width(), bitmap->Height());
lcd->Refresh(true); lcd->Refresh(true);
} }
} else { else
{
cglcd->bitmap->Clear(ColorConvert3to1(t.glcd_color_bg_red, t.glcd_color_bg_green, t.glcd_color_bg_blue)); cglcd->bitmap->Clear(ColorConvert3to1(t.glcd_color_bg_red, t.glcd_color_bg_green, t.glcd_color_bg_blue));
cglcd->lcd->Refresh(true); cglcd->lcd->Refresh(true);
} }
@@ -1086,7 +1085,7 @@ void cGLCD::Run(void)
} }
} }
if(!g_settings.glcd_enable || doSuspend || doStandby) if (!g_settings.glcd_enable || doSuspend || doStandby)
{ {
// for restart, don't blacken screen // for restart, don't blacken screen
bitmap->Clear(GLCD::cColor::Black); bitmap->Clear(GLCD::cColor::Black);
@@ -1094,18 +1093,17 @@ void cGLCD::Run(void)
lcd->SetScreen(bitmap->Data(), bitmap->Width(), bitmap->Height()); lcd->SetScreen(bitmap->Data(), bitmap->Width(), bitmap->Height());
lcd->Refresh(false); lcd->Refresh(false);
} }
if(doExit) if (doExit)
{
if (g_settings.glcd_show_logo)
{ {
if (imageShow(DATADIR "/neutrino/icons/shutdown.jpg", 0, 0, 0, 0, false, true, true, false, false)) if (imageShow(DATADIR "/neutrino/icons/shutdown.jpg", 0, 0, 0, 0, false, true, true, false, false))
{ {
lcd->SetScreen(bitmap->Data(), bitmap->Width(), bitmap->Height()); lcd->SetScreen(bitmap->Data(), bitmap->Width(), bitmap->Height());
lcd->Refresh(false); lcd->Refresh(false);
sleep(3); sleep(1);
lcd->SetBrightness(0); lcd->SetBrightness(0);
} }
} else { else
{
bitmap->Clear(GLCD::cColor::Black); bitmap->Clear(GLCD::cColor::Black);
lcd->SetBrightness(0); lcd->SetBrightness(0);
lcd->SetScreen(bitmap->Data(), bitmap->Width(), bitmap->Height()); lcd->SetScreen(bitmap->Data(), bitmap->Width(), bitmap->Height());