summaryrefslogtreecommitdiff
path: root/display.c
diff options
context:
space:
mode:
authorFrank Neumann <fnu@yavdr.org>2017-06-04 11:27:08 +0200
committerFrank Neumann <fnu@yavdr.org>2017-06-04 11:27:08 +0200
commitc8537f7c94658acea25df5be4c281310d0dd1259 (patch)
tree4b3412f6547bfefb3618c25393cdb0a9fe3e0154 /display.c
parent756bbf36c3b18732fd1a8800b01fad6a9a67df8d (diff)
downloadvdr-plugin-text2skin-c8537f7c94658acea25df5be4c281310d0dd1259.tar.gz
vdr-plugin-text2skin-c8537f7c94658acea25df5be4c281310d0dd1259.tar.bz2
Drop legacy code prior VDR 2.2.0.
Diffstat (limited to 'display.c')
-rw-r--r--display.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/display.c b/display.c
index bc10bd1..7800729 100644
--- a/display.c
+++ b/display.c
@@ -250,27 +250,19 @@ cxType cText2SkinDisplayChannel::GetTokenData(const txToken &Token)
return false;
case tVideoSizeWidth: {
-#if VDRVERSNUM >= 10707
int width, height;
double aspect;
cDevice *dev = cDevice::PrimaryDevice();
dev->GetVideoSize(width, height, aspect);
return (cxType)width;
-#else
- return 0;
-#endif
}
case tVideoSizeHeight: {
-#if VDRVERSNUM >= 10707
int width, height;
double aspect;
cDevice *dev = cDevice::PrimaryDevice();
dev->GetVideoSize(width, height, aspect);
return (cxType)height;
-#else
- return 0;
-#endif
}
case tHasTeletext:
@@ -1313,29 +1305,17 @@ cxType cText2SkinDisplayMenu::GetTokenData(const txToken &Token)
case tRecordingPriority:
return mRecording != NULL
-#if APIVERSNUM >= 10721
? (cxType)mRecording->Priority()
-#else
- ? (cxType)mRecording->priority
-#endif
: (cxType)false;
case tRecordingLifetime:
return mRecording != NULL
-#if APIVERSNUM >= 10721
? (cxType)mRecording->Lifetime()
-#else
- ? (cxType)mRecording->lifetime
-#endif
: (cxType)false;
case tRecordingDateTime:
return mRecording != NULL
-#if APIVERSNUM >= 10721
? (cxType)TimeType(mRecording->Start(), Token.Attrib.Text)
-#else
- ? (cxType)TimeType(mRecording->start, Token.Attrib.Text)
-#endif
: (cxType)false;
case tRecordingTitle:
@@ -1426,20 +1406,12 @@ cxType cText2SkinDisplayMenu::GetTokenData(const txToken &Token)
case tRecordingLength:
return mRecording != NULL
-#if VDRVERSNUM >= 10703
? (cxType)GetRecordingLength(mRecording->FileName(), mRecording->FramesPerSecond(), mRecording->IsPesRecording())
-#else
- ? (cxType)GetRecordingLength(mRecording->FileName(), FRAMESPERSEC, true)
-#endif
: (cxType)false;
case tRecordingCuttedLength:
return mRecording != NULL
-#if VDRVERSNUM >= 10703
? (cxType)GetRecordingCuttedLength(mRecording->FileName(), mRecording->FramesPerSecond(), mRecording->IsPesRecording())
-#else
- ? (cxType)GetRecordingCuttedLength(mRecording->FileName(), FRAMESPERSEC, true)
-#endif
: (cxType)false;
default: