diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-09-10 14:56:18 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-09-10 14:56:18 +0200 |
commit | bec30645904b01f95e789f720f47b769498cb4d2 (patch) | |
tree | 21cb9d204688a0675643d2f6e8e9508a08cb7719 /config.c | |
parent | 61c87ad6c76431bdb774e02546e8718a9bb0f602 (diff) | |
download | vdr-bec30645904b01f95e789f720f47b769498cb4d2.tar.gz vdr-bec30645904b01f95e789f720f47b769498cb4d2.tar.bz2 |
Direct channel select displays digits and name on OSD
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.c 1.20 2000/09/10 10:30:15 kls Exp $ + * $Id: config.c 1.21 2000/09/10 14:32:45 kls Exp $ */ #include "config.h" @@ -560,6 +560,14 @@ const char *cChannels::GetChannelNameByNumber(int Number) return channel ? channel->name : NULL; } +eKeys cChannels::ShowChannel(int Number, bool Switched, bool Group) +{ + cChannel *channel = Group ? Get(Number) : GetByNumber(Number); + if (channel) + return Interface.DisplayChannel(channel->number, channel->name, !Switched || Setup.ShowInfoOnChSwitch); + return kNone; +} + // -- cTimers ---------------------------------------------------------------- cTimers Timers; |