mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
- glcdsetup: localize clock options
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -240,9 +240,9 @@ void nGLCD::Exec() {
|
||||
if (percent_time_standby) {
|
||||
|
||||
std::string Time;
|
||||
if (g_settings.glcd_time_in_standby == 3)
|
||||
if (g_settings.glcd_time_in_standby == CLOCK_ANALOG)
|
||||
LcdAnalogClock(bitmap->Width()/2, bitmap->Height()/2, 200);
|
||||
else if (g_settings.glcd_time_in_standby == 2)
|
||||
else if (g_settings.glcd_time_in_standby == CLOCK_DIGITAL_HMS)
|
||||
Time = strftime("%H:%M:%S", tm);
|
||||
else
|
||||
Time = strftime("%H:%M", tm);
|
||||
@@ -795,7 +795,7 @@ void nGLCD::Update() {
|
||||
|
||||
void nGLCD::StandbyMode(bool b) {
|
||||
if (nglcd) {
|
||||
if (g_settings.glcd_time_in_standby) {
|
||||
if (g_settings.glcd_time_in_standby != CLOCK_OFF) {
|
||||
nglcd->doStandbyTime = b;
|
||||
nglcd->doStandby = false;
|
||||
} else {
|
||||
|
@@ -114,6 +114,14 @@ class nGLCD
|
||||
static void Lock();
|
||||
static void Unlock();
|
||||
public:
|
||||
enum
|
||||
{
|
||||
CLOCK_OFF = 0,
|
||||
CLOCK_DIGITAL_HM = 1,
|
||||
CLOCK_DIGITAL_HMS = 2,
|
||||
CLOCK_ANALOG = 3
|
||||
};
|
||||
|
||||
nGLCD();
|
||||
~nGLCD();
|
||||
void DeInit();
|
||||
|
Reference in New Issue
Block a user