mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
fixed display of clock in displayreplay during pause
This commit is contained in:
parent
459f88bcac
commit
a1269c2667
@ -138,6 +138,7 @@ void cViewReplay::ClearVariables(void) {
|
|||||||
cView::ClearVariables();
|
cView::ClearVariables();
|
||||||
modeOnly = false;
|
modeOnly = false;
|
||||||
lastFlush = 0;
|
lastFlush = 0;
|
||||||
|
lastFlushModeOnly = 0;
|
||||||
message = false;
|
message = false;
|
||||||
reclength = -1;
|
reclength = -1;
|
||||||
timeShiftActive = false;
|
timeShiftActive = false;
|
||||||
@ -183,11 +184,6 @@ void cViewReplay::SetCurrent(const char *current) {
|
|||||||
if (veCurrentTime)
|
if (veCurrentTime)
|
||||||
veCurrentTime->Set(current);
|
veCurrentTime->Set(current);
|
||||||
Render((int)eVeDisplayReplay::currenttime);
|
Render((int)eVeDisplayReplay::currenttime);
|
||||||
//good place to refresh these viewelements
|
|
||||||
//since SetCurrent is called every second
|
|
||||||
Render((int)eVeDisplayReplay::datetime);
|
|
||||||
Render((int)eVeDisplayReplay::time);
|
|
||||||
Render((int)eVeDisplayChannel::customtokens);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void cViewReplay::SetTotal(const char *total) {
|
void cViewReplay::SetTotal(const char *total) {
|
||||||
@ -285,6 +281,14 @@ void cViewReplay::Flush(void) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
time_t now = time(0);
|
||||||
|
if (now != lastFlush) {
|
||||||
|
Render((int)eVeDisplayReplay::datetime);
|
||||||
|
Render((int)eVeDisplayReplay::time);
|
||||||
|
Render((int)eVeDisplayChannel::customtokens);
|
||||||
|
lastFlush = now;
|
||||||
|
}
|
||||||
|
|
||||||
if (modeOnly) {
|
if (modeOnly) {
|
||||||
SetProgressModeOnly();
|
SetProgressModeOnly();
|
||||||
}
|
}
|
||||||
@ -296,10 +300,10 @@ void cViewReplay::SetProgressModeOnly(void) {
|
|||||||
if (!veProgressModeOnly)
|
if (!veProgressModeOnly)
|
||||||
return;
|
return;
|
||||||
time_t now = time(0);
|
time_t now = time(0);
|
||||||
if (now == lastFlush) {
|
if (now == lastFlushModeOnly) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
lastFlush = now;
|
lastFlushModeOnly = now;
|
||||||
|
|
||||||
cControl *control = cControl::Control();
|
cControl *control = cControl::Control();
|
||||||
if (!control)
|
if (!control)
|
||||||
|
@ -23,6 +23,7 @@ private:
|
|||||||
cVeDrOnPause *veOnPauseModeOnly;
|
cVeDrOnPause *veOnPauseModeOnly;
|
||||||
bool modeOnly;
|
bool modeOnly;
|
||||||
time_t lastFlush;
|
time_t lastFlush;
|
||||||
|
time_t lastFlushModeOnly;
|
||||||
bool message;
|
bool message;
|
||||||
int reclength;
|
int reclength;
|
||||||
bool timeShiftActive;
|
bool timeShiftActive;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user