diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2022-05-30 13:18:30 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2022-06-05 14:53:28 +0200 |
commit | ad02170a2ad0e2713e61eb880de92c6195c994cd (patch) | |
tree | d497429c80899532bffe39e3c9b966af677dbdbe | |
parent | b48196b5009c08121bf5f5250560de189d5dc3d2 (diff) | |
download | skin-nopacity-ad02170a2ad0e2713e61eb880de92c6195c994cd.tar.gz skin-nopacity-ad02170a2ad0e2713e61eb880de92c6195c994cd.tar.bz2 |
Optimize display progress bar in DisplayChannel
The update rate of the progress bar is optimized for a smoother display.
-rw-r--r-- | displaychannel.c | 6 | ||||
-rw-r--r-- | displaychannel.h | 1 |
2 files changed, 1 insertions, 6 deletions
diff --git a/displaychannel.c b/displaychannel.c index d711712..7a71db5 100644 --- a/displaychannel.c +++ b/displaychannel.c @@ -11,7 +11,6 @@ cNopacityDisplayChannel::cNopacityDisplayChannel(bool WithInfo) : cThread("Displ groupSep = false; present = NULL; following = NULL; - currentLast = 0; channelChange = false; fadeout = false; initial = true; @@ -93,10 +92,7 @@ void cNopacityDisplayChannel::SetProgressBar(const cEvent *present) { if (t > present->StartTime()) Current = t - present->StartTime(); Total = present->Duration(); - if ((Current > currentLast + 3) || initial || channelChange){ - currentLast = Current; - channelView->DrawProgressBar(Current, Total); - } + channelView->DrawProgressBar(Current, Total); } diff --git a/displaychannel.h b/displaychannel.h index f1f95d5..ba33ec2 100644 --- a/displaychannel.h +++ b/displaychannel.h @@ -16,7 +16,6 @@ private: int lastSignalStrength; int lastSignalQuality; int lastScreenWidth; - int currentLast; bool showSignal; const cEvent *present; const cEvent *following; |