mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed handling the repeat function in the channel display
This commit is contained in:
parent
17cdf085c7
commit
8690654eaf
1
HISTORY
1
HISTORY
@ -844,3 +844,4 @@ Video Disk Recorder Revision History
|
|||||||
(thanks to Helmut Schächner).
|
(thanks to Helmut Schächner).
|
||||||
- Changed the tuning code to use FrontendInfo to detect the type of DVB card.
|
- Changed the tuning code to use FrontendInfo to detect the type of DVB card.
|
||||||
- Removed the recursion stuff from cThread (cMutex already does this).
|
- Removed the recursion stuff from cThread (cMutex already does this).
|
||||||
|
- Fixed handling the repeat function in the channel display.
|
||||||
|
12
menu.c
12
menu.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: menu.c 1.133 2001/10/27 12:03:19 kls Exp $
|
* $Id: menu.c 1.134 2001/10/27 13:47:12 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -2062,7 +2062,9 @@ eOSState cDisplayChannel::ProcessKey(eKeys Key)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case kLeft|k_Repeat:
|
||||||
case kLeft:
|
case kLeft:
|
||||||
|
case kRight|k_Repeat:
|
||||||
case kRight:
|
case kRight:
|
||||||
withInfo = false;
|
withInfo = false;
|
||||||
if (group < 0) {
|
if (group < 0) {
|
||||||
@ -2072,7 +2074,7 @@ eOSState cDisplayChannel::ProcessKey(eKeys Key)
|
|||||||
}
|
}
|
||||||
if (group >= 0) {
|
if (group >= 0) {
|
||||||
int SaveGroup = group;
|
int SaveGroup = group;
|
||||||
if (Key == kRight)
|
if (NORMALKEY(Key) == kRight)
|
||||||
group = Channels.GetNextGroup(group) ;
|
group = Channels.GetNextGroup(group) ;
|
||||||
else
|
else
|
||||||
group = Channels.GetPrevGroup(group < 1 ? 1 : group);
|
group = Channels.GetPrevGroup(group < 1 ? 1 : group);
|
||||||
@ -2101,8 +2103,10 @@ eOSState cDisplayChannel::ProcessKey(eKeys Key)
|
|||||||
case kOk: if (group >= 0)
|
case kOk: if (group >= 0)
|
||||||
Channels.SwitchTo(Channels.Get(Channels.GetNextNormal(group))->number);
|
Channels.SwitchTo(Channels.Get(Channels.GetNextNormal(group))->number);
|
||||||
return osEnd;
|
return osEnd;
|
||||||
default: Interface->PutKey(Key);
|
default: if ((Key & (k_Repeat | k_Release)) == 0) {
|
||||||
return osEnd;
|
Interface->PutKey(Key);
|
||||||
|
return osEnd;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
if (time_ms() - lastTime < INFOTIMEOUT) {
|
if (time_ms() - lastTime < INFOTIMEOUT) {
|
||||||
DisplayInfo();
|
DisplayInfo();
|
||||||
|
Loading…
Reference in New Issue
Block a user