glcdsetup: localize clock options

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

Origin message was:
------------------
- glcdsetup: localize clock options

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2020-06-14 18:44:44 +02:00
parent 7b51f2ba7a
commit 4151b16a90
7 changed files with 23 additions and 7 deletions

View File

@@ -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 {