diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-10-13 12:16:34 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-10-13 13:46:23 +0200 |
commit | 9173d14b10ee39ab206be98fe5a01c5591f392d2 (patch) | |
tree | f420d70723531255c8349beb4aefdcf0807a8ebb /tvguideosd.c | |
parent | 3386c05e915d23c1f6126b8c7deac172857feaaf (diff) | |
download | vdr-plugin-tvguide-9173d14b10ee39ab206be98fe5a01c5591f392d2.tar.gz vdr-plugin-tvguide-9173d14b10ee39ab206be98fe5a01c5591f392d2.tar.bz2 |
Fixed updating current time
Diffstat (limited to 'tvguideosd.c')
-rw-r--r-- | tvguideosd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tvguideosd.c b/tvguideosd.c index 897ad6c..f35bdbc 100644 --- a/tvguideosd.c +++ b/tvguideosd.c @@ -352,7 +352,7 @@ void cTvGuideOsd::channelBack() { void cTvGuideOsd::timeForward() { bool actionDone = false; - if ( (timeManager->GetEnd() - activeGrid->EndTime())/60 < 30 ) { + if ((timeManager->GetEnd() - activeGrid->EndTime())/60 < 30 ) { ScrollForward(); actionDone = true; } @@ -373,7 +373,6 @@ void cTvGuideOsd::timeForward() { void cTvGuideOsd::ScrollForward() { timeManager->AddStep(config.stepMinutes); timeLine->drawDateViewer(); - timeLine->drawClock(); timeLine->setTimeline(); for (cChannelEpg *column = columns.First(); column; column = columns.Next(column)) { column->AddNewGridsAtEnd(); @@ -384,7 +383,7 @@ void cTvGuideOsd::ScrollForward() { void cTvGuideOsd::timeBack() { bool actionDone = false; - if ( (activeGrid->StartTime() - timeManager->GetStart())/60 < 30 ) { + if ((activeGrid->StartTime() - timeManager->GetStart())/60 < 30 ) { ScrollBack(); actionDone = true; } @@ -408,7 +407,6 @@ void cTvGuideOsd::ScrollBack() { if (tooFarInPast) return; timeLine->drawDateViewer(); - timeLine->drawClock(); timeLine->setTimeline(); for (cChannelEpg *column = columns.First(); column; column = columns.Next(column)) { column->AddNewGridsAtStart(); @@ -776,6 +774,9 @@ eOSState cTvGuideOsd::ProcessKey(eKeys Key) { case kNone: if (channelJumper) CheckTimeout(); break; default: break; } + if (timeLine->drawClock()) { + osdManager.flush(); + } } if (!alreadyUnlocked) { cPixmap::Unlock(); |