summaryrefslogtreecommitdiff
path: root/display.c
diff options
context:
space:
mode:
Diffstat (limited to 'display.c')
-rw-r--r--display.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/display.c b/display.c
index 577f2a6..93086e5 100644
--- a/display.c
+++ b/display.c
@@ -243,7 +243,31 @@ cxType cText2SkinDisplayChannel::GetTokenData(const txToken &Token)
return (cxType)false;
}
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:
case tChannelHasTeletext:
return mChannel != NULL && mChannel->Tpid() != 0;