mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
- glcd: re-add 540d081; do always show startup logo
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -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));
|
||||
|
||||
if (Channel == "Neutrino")
|
||||
{
|
||||
if (g_settings.glcd_show_logo)
|
||||
if (Channel.compare("Neutrino") == 0)
|
||||
{
|
||||
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->Refresh(true);
|
||||
}
|
||||
} else {
|
||||
else
|
||||
{
|
||||
cglcd->bitmap->Clear(ColorConvert3to1(t.glcd_color_bg_red, t.glcd_color_bg_green, t.glcd_color_bg_blue));
|
||||
cglcd->lcd->Refresh(true);
|
||||
}
|
||||
@@ -1095,17 +1094,16 @@ void cGLCD::Run(void)
|
||||
lcd->Refresh(false);
|
||||
}
|
||||
if (doExit)
|
||||
{
|
||||
if (g_settings.glcd_show_logo)
|
||||
{
|
||||
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->Refresh(false);
|
||||
sleep(3);
|
||||
sleep(1);
|
||||
lcd->SetBrightness(0);
|
||||
}
|
||||
} else {
|
||||
else
|
||||
{
|
||||
bitmap->Clear(GLCD::cColor::Black);
|
||||
lcd->SetBrightness(0);
|
||||
lcd->SetScreen(bitmap->Data(), bitmap->Width(), bitmap->Height());
|
||||
|
Reference in New Issue
Block a user