mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
add change blink
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@182 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -46,7 +46,6 @@
|
||||
#include <zapit/frontend_c.h>
|
||||
|
||||
extern CFrontend * frontend;
|
||||
extern bool pb_blink;
|
||||
|
||||
static int g_sig;
|
||||
static int g_snr;
|
||||
@@ -90,8 +89,9 @@ void CMotorControl::Init(void)
|
||||
motorPosition = 1;
|
||||
satellitePosition = 0;
|
||||
stepDelay = 10;
|
||||
sigscale = new CProgressBar(pb_blink, BAR_WIDTH, BAR_HEIGHT);
|
||||
snrscale = new CProgressBar(pb_blink, BAR_WIDTH, BAR_HEIGHT);
|
||||
sigscale = new CProgressBar(g_settings.progressbar_color, BAR_WIDTH, BAR_HEIGHT);
|
||||
snrscale = new CProgressBar(g_settings.progressbar_color, BAR_WIDTH, BAR_HEIGHT);
|
||||
pbBlinkChange = g_settings.progressbar_color;
|
||||
}
|
||||
|
||||
int CMotorControl::exec(CMenuTarget* parent, const std::string &)
|
||||
@@ -107,6 +107,17 @@ int CMotorControl::exec(CMenuTarget* parent, const std::string &)
|
||||
CZapitClient::commandSetScanSatelliteList sat;
|
||||
sat_iterator_t sit;
|
||||
|
||||
if(pbBlinkChange != g_settings.progressbar_color){
|
||||
pbBlinkChange = g_settings.progressbar_color;
|
||||
if(sigscale){
|
||||
delete sigscale;
|
||||
sigscale = new CProgressBar(g_settings.progressbar_color, BAR_WIDTH, BAR_HEIGHT);
|
||||
}
|
||||
if(snrscale){
|
||||
delete snrscale;
|
||||
snrscale = new CProgressBar(g_settings.progressbar_color, BAR_WIDTH, BAR_HEIGHT);
|
||||
}
|
||||
}
|
||||
sigscale->reset();
|
||||
snrscale->reset();
|
||||
lastsnr = lastsig = -1;
|
||||
|
Reference in New Issue
Block a user