diff options
author | anbr <vdr07@deltab.de> | 2011-10-02 22:11:16 +0200 |
---|---|---|
committer | anbr <vdr07@deltab.de> | 2011-10-02 22:11:16 +0200 |
commit | c92ba1c907240415fd7caab5b757bbdeb73efc17 (patch) | |
tree | 9bef5cd3ec95b8888140a21e8ba9195e10984de9 /menu-commands.c | |
parent | 75d0527ba553b9ad76a4093001aaa1ec1495593e (diff) | |
download | vdr-plugin-image-c92ba1c907240415fd7caab5b757bbdeb73efc17.tar.gz vdr-plugin-image-c92ba1c907240415fd7caab5b757bbdeb73efc17.tar.bz2 |
Migrated from vdr-image.berlios.de to projects.vdr-developer.org
Diffstat (limited to 'menu-commands.c')
-rw-r--r-- | menu-commands.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/menu-commands.c b/menu-commands.c index 97abe01..66b58f9 100644 --- a/menu-commands.c +++ b/menu-commands.c @@ -1,7 +1,7 @@ /* * Image plugin to VDR (C++) * - * (C) 2004-2008 Andreas Brachold <anbr at users.berlios.de> + * (C) 2004-2011 Andreas Brachold <vdr07 at deltab.de> * * This code is distributed under the terms and conditions of the * GNU GENERAL PUBLIC LICENSE. See the file COPYING for details. @@ -111,14 +111,10 @@ cImageMenuResult::cImageMenuResult(const char *szTitle, const char *szText) eOSState cImageMenuResult::ProcessKey(eKeys nKey) { - switch (nKey) { - case kUp|k_Repeat: + switch (nKey & ~k_Repeat) { case kUp: - case kDown|k_Repeat: case kDown: - case kLeft|k_Repeat: case kLeft: - case kRight|k_Repeat: case kRight: DisplayMenu()->Scroll(NORMALKEY(nKey) == kUp || NORMALKEY(nKey) == kLeft, NORMALKEY(nKey) == kLeft || NORMALKEY(nKey) == kRight); return osContinue; |