diff options
author | gnapheus <solevita50@gmail.com> | 2013-03-22 19:32:51 +0100 |
---|---|---|
committer | gnapheus <solevita50@gmail.com> | 2013-03-22 19:32:51 +0100 |
commit | 1a1dbb44e906ea08289eae429116912235335a53 (patch) | |
tree | 39a4b043864caa06fe851e5c34fb587a50373434 /zappilotosd.c | |
parent | ede4ec0c86be1ca235cbc47dda3b4603eaa493e1 (diff) | |
download | vdr-plugin-zappilot-master.tar.gz vdr-plugin-zappilot-master.tar.bz2 |
Diffstat (limited to 'zappilotosd.c')
-rw-r--r-- | zappilotosd.c | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/zappilotosd.c b/zappilotosd.c index eb5036a..898a921 100644 --- a/zappilotosd.c +++ b/zappilotosd.c @@ -268,6 +268,7 @@ void cZappilotOsd::Show() { // find the actual current cChannel *Channel = Channels.GetByNumber(cDevice::PrimaryDevice()->CurrentChannel()); + currentChannel = Channels.GetByNumber(cDevice::PrimaryDevice()->CurrentChannel()); if (Channel) { @@ -367,6 +368,13 @@ eOSState cZappilotOsd::ProcessKey(eKeys Key) group = channel->Index()-1; break; } + else if (config.fastbrowsealt) + { + // Scroll back in time + UpdateEPGInfo(3); + DrawMenu(0,0); + return osContinue; + } case kRight|k_Repeat: case kRight: if (config.fastbrowse) @@ -377,6 +385,13 @@ eOSState cZappilotOsd::ProcessKey(eKeys Key) group = channel->Index()-1; break; } + else if (config.fastbrowsealt) + { + // Scroll forward in time + UpdateEPGInfo(2); + DrawMenu(0,0); + return osContinue; + } else { if (group < 0) @@ -678,10 +693,13 @@ void cZappilotOsd::CursorDown() void cZappilotOsd::CursorOK() { DrawMenu(0,2); - cChannel *Channel = Channels.GetByNumber(PilotChannelNumber); - if (Channel) + if (currentChannel != Channels.GetByNumber(PilotChannelNumber)) { - cDevice::PrimaryDevice()->SwitchChannel(Channel, true); + cChannel *Channel = Channels.GetByNumber(PilotChannelNumber); + if (Channel) + { + cDevice::PrimaryDevice()->SwitchChannel(Channel, true); + } } } |