From ad02170a2ad0e2713e61eb880de92c6195c994cd Mon Sep 17 00:00:00 2001 From: kamel5 Date: Mon, 30 May 2022 13:18:30 +0200 Subject: Optimize display progress bar in DisplayChannel The update rate of the progress bar is optimized for a smoother display. --- displaychannel.c | 6 +----- displaychannel.h | 1 - 2 files changed, 1 insertion(+), 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; -- cgit v1.2.3