Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: thing's todo befor 1.0.0 final



Klaus Schmidinger wrote:
> 
> bernd wrote:
> >
> > Hi,
> >
> > there is still a issue in the channel list, if you scroll the list and the
> > cursor
> > is on the bottom and the list entry is not a channel the cursor is not
> > visible.
> >
> > Regards
> > Bernd Zierath
> 
> Could you please test the following patch and let me know if it fixes this?

Sorry, I guess I was a little too premature with that one.
Please try this one:

--- osd.c       2002/03/10 16:18:06     1.21
+++ osd.c       2002/03/24 11:23:23
@@ -288,6 +288,10 @@
   first -= MAXOSDITEMS;
   if (first < 0)
      first = current = 0;
+  if (SpecialItem(current)) {
+     current -= (current > 0) ? 1 : -1;
+     first = min(first, current - 1);
+     }
   Display();
   DisplayCurrent(true);
 }
@@ -301,6 +305,10 @@
   if (current > Count() - 1) {
      current = Count() - 1;
      first = Count() - MAXOSDITEMS;
+     }
+  if (SpecialItem(current)) {
+     current += (current < Count() - 1) ? 1 : -1;
+     first = max(first, current - MAXOSDITEMS);
      }
   Display();
   DisplayCurrent(true);


Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________



Home | Main Index | Thread Index