summaryrefslogtreecommitdiff
path: root/plugins/nordlichtsepg/patches/vdr-nordlichtsepg-0.9-test1-progressbar_fix.diff
blob: d280dfe5b3743b2c71462406de302f25e3ea0299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- mywhatsonitem.c.old	2008-04-19 14:25:11.000000000 +0200
+++ mywhatsonitem.c	2008-04-19 14:26:13.000000000 +0200
@@ -97,26 +97,15 @@
     progress=9;
   
   std::string ProgressBar;
+  ProgressBar+=Icons::ProgressStart();
   for(i=0;i < 10;i++)
   {
-    if(i == 0 && progress > 0)
+    if(i < progress)
       ProgressBar+=Icons::ProgressFilled();
     else
-      ProgressBar+=Icons::ProgressStart();
-    
-    if(i > 0 && i < 9)
-    {
-      if(i < progress)
-        ProgressBar+=Icons::ProgressFilled();
-      else
-        ProgressBar+=Icons::ProgressEmpty();
-    }
-    
-    if(i == 9 && progress == 9)
-      ProgressBar+=Icons::ProgressFilled();
-    else
-      ProgressBar+=Icons::ProgressEnd();
+      ProgressBar+=Icons::ProgressEmpty();
   }
+  ProgressBar+=Icons::ProgressEnd();
     
   if(showchannelnumbers)
     asprintf(&buffer,"%c\t%d\t%-10s\t %s\t%s",m,channel->Number(),channel->ShortName(true),(!(event->RunningStatus()==4)&&next)?*event->GetTimeString():ProgressBar.c_str(),event->Title());