summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-09-08 14:39:09 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-09-08 14:39:09 +0200
commit9d509c37e712974d653b8ccd2ceddfda7c9cccfe (patch)
tree7318c9b8e0634b003fffb8cba0a1e68c520129c0 /vdr.c
parentc7bb0bb73964eafed5e337dc18278fa118775671 (diff)
downloadvdr-9d509c37e712974d653b8ccd2ceddfda7c9cccfe.tar.gz
vdr-9d509c37e712974d653b8ccd2ceddfda7c9cccfe.tar.bz2
Switching through channel groups now starts at current channel's group
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/vdr.c b/vdr.c
index 51a841ee..2ba16905 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/people/kls/vdr
*
- * $Id: vdr.c 1.71 2001/09/08 12:49:38 kls Exp $
+ * $Id: vdr.c 1.72 2001/09/08 14:34:29 kls Exp $
*/
#define _GNU_SOURCE
@@ -406,17 +406,9 @@ int main(int argc, char *argv[])
case kLeft|k_Repeat:
case kLeft:
case kRight|k_Repeat:
- case kRight: {
- int SaveGroup = CurrentGroup;
- if (NORMALKEY(key) == kRight)
- CurrentGroup = Channels.GetNextGroup(CurrentGroup) ;
- else
- CurrentGroup = Channels.GetPrevGroup(CurrentGroup < 1 ? 1 : CurrentGroup);
- if (CurrentGroup < 0)
- CurrentGroup = SaveGroup;
- Menu = new cDisplayChannel(CurrentGroup, false, true);
+ case kRight:
+ Menu = new cDisplayChannel(NORMALKEY(key));
break;
- }
// Up/Down Channel Select:
case kUp|k_Repeat:
case kUp: