mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
update glcd
Origin commit data
------------------
Commit: 0c2dcc9eb1
Author: redblue.pkt <redblue.pkt@orange.pl>
Date: 2020-06-19 (Fri, 19 Jun 2020)
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
#include <system/helpers.h>
|
||||
#include <system/hddstat.h>
|
||||
#include <daemonc/remotecontrol.h>
|
||||
#include <driver/display.h>
|
||||
#include <driver/radiotext.h>
|
||||
#include <driver/volume.h>
|
||||
#include <driver/fontrenderer.h>
|
||||
@@ -512,6 +513,12 @@ void CInfoViewerBB::showIcon_SubT()
|
||||
have_sub = true;
|
||||
|
||||
showBBIcons(CInfoViewerBB::ICON_SUBT, (have_sub) ? NEUTRINO_ICON_SUBT : NEUTRINO_ICON_SUBT_GREY);
|
||||
#ifdef ENABLE_GRAPHLCD
|
||||
if (cc && cc->getSubtitleCount())
|
||||
cGLCD::lockIcon(cGLCD::SUB);
|
||||
else
|
||||
cGLCD::unlockIcon(cGLCD::SUB);
|
||||
#endif
|
||||
}
|
||||
|
||||
void CInfoViewerBB::showIcon_VTXT()
|
||||
@@ -519,6 +526,12 @@ void CInfoViewerBB::showIcon_VTXT()
|
||||
if (!is_visible)
|
||||
return;
|
||||
showBBIcons(CInfoViewerBB::ICON_VTXT, (g_RemoteControl->current_PIDs.PIDs.vtxtpid != 0) ? NEUTRINO_ICON_VTXT : NEUTRINO_ICON_VTXT_GREY);
|
||||
#ifdef ENABLE_GRAPHLCD
|
||||
if (g_RemoteControl->current_PIDs.PIDs.vtxtpid)
|
||||
cGLCD::lockIcon(cGLCD::TXT);
|
||||
else
|
||||
cGLCD::unlockIcon(cGLCD::TXT);
|
||||
#endif
|
||||
}
|
||||
|
||||
void CInfoViewerBB::showIcon_DD()
|
||||
@@ -529,10 +542,17 @@ void CInfoViewerBB::showIcon_DD()
|
||||
if ((g_RemoteControl->current_PIDs.PIDs.selected_apid < g_RemoteControl->current_PIDs.APIDs.size()) &&
|
||||
(g_RemoteControl->current_PIDs.APIDs[g_RemoteControl->current_PIDs.PIDs.selected_apid].is_ac3))
|
||||
dd_icon = NEUTRINO_ICON_DD;
|
||||
else
|
||||
else
|
||||
dd_icon = g_RemoteControl->has_ac3 ? NEUTRINO_ICON_DD_AVAIL : NEUTRINO_ICON_DD_GREY;
|
||||
|
||||
showBBIcons(CInfoViewerBB::ICON_DD, dd_icon);
|
||||
#ifdef ENABLE_GRAPHLCD
|
||||
if ((g_RemoteControl->current_PIDs.PIDs.selected_apid < g_RemoteControl->current_PIDs.APIDs.size()) &&
|
||||
(g_RemoteControl->current_PIDs.APIDs[g_RemoteControl->current_PIDs.PIDs.selected_apid].is_ac3))
|
||||
cGLCD::lockIcon(cGLCD::DD);
|
||||
else
|
||||
cGLCD::unlockIcon(cGLCD::DD);
|
||||
#endif
|
||||
}
|
||||
|
||||
void CInfoViewerBB::showIcon_RadioText(bool rt_available)
|
||||
|
Reference in New Issue
Block a user