summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-09-10 14:56:18 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-09-10 14:56:18 +0200
commitbec30645904b01f95e789f720f47b769498cb4d2 (patch)
tree21cb9d204688a0675643d2f6e8e9508a08cb7719 /config.c
parent61c87ad6c76431bdb774e02546e8718a9bb0f602 (diff)
downloadvdr-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.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/config.c b/config.c
index 48ac3e5e..188e8973 100644
--- a/config.c
+++ b/config.c
@@ -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;