From 5d99df7b7760c4a2b497c737a15b609008f6d56d Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 16 May 2004 10:35:36 +0200 Subject: Implemented 'skins' and 'themes' --- device.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'device.c') diff --git a/device.c b/device.c index 871149e9..9da29579 100644 --- a/device.c +++ b/device.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 1.53 2004/02/08 15:05:11 kls Exp $ + * $Id: device.c 1.54 2004/04/17 10:07:10 kls Exp $ */ #include "device.h" @@ -126,11 +126,6 @@ bool cDevice::HasDecoder(void) const return false; } -cOsdBase *cDevice::NewOsd(int x, int y) -{ - return NULL; -} - cSpuDecoder *cDevice::GetSpuDecoder(void) { return NULL; @@ -360,11 +355,9 @@ bool cDevice::SwitchChannel(const cChannel *Channel, bool LiveView) for (int i = 3; i--;) { switch (SetChannel(Channel, LiveView)) { case scrOk: return true; - case scrNotAvailable: if (Interface) - Interface->Error(tr("Channel not available!")); + case scrNotAvailable: Skins.Message(mtError, tr("Channel not available!")); return false; - case scrNoTransfer: if (Interface) - Interface->Error(tr("Can't start Transfer Mode!")); + case scrNoTransfer: Skins.Message(mtError, tr("Can't start Transfer Mode!")); return false; case scrFailed: break; // loop will retry } @@ -396,8 +389,8 @@ bool cDevice::SwitchChannel(int Direction) if (PrimaryDevice()->SwitchChannel(channel, true)) result = true; } - else if (n != first && Interface) - Interface->Error(tr("Channel not available!")); + else if (n != first) + Skins.Message(mtError, tr("Channel not available!")); } return result; } -- cgit v1.2.3