summaryrefslogtreecommitdiff
path: root/lcarsng.c
diff options
context:
space:
mode:
authorKarl Melscher <kamel5@gmx.net>2018-03-07 16:01:16 +0100
committerKarl Melscher <kamel5@gmx.net>2018-03-07 16:01:16 +0100
commit33090041b19df316828dc35db706cf347b3e6da5 (patch)
treec606915b9c0da29ccc691888601eb962d6354090 /lcarsng.c
parent6c9003ee049abbb9b3007bcc81f9eb9b4b7518dd (diff)
downloadskin-lcarsng-33090041b19df316828dc35db706cf347b3e6da5.tar.gz
skin-lcarsng-33090041b19df316828dc35db706cf347b3e6da5.tar.bz2
MasterSlotNumber for VDR > 2.3.2
Diffstat (limited to 'lcarsng.c')
-rw-r--r--lcarsng.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lcarsng.c b/lcarsng.c
index f5a7919..a7d34d5 100644
--- a/lcarsng.c
+++ b/lcarsng.c
@@ -258,8 +258,12 @@ static bool DrawDeviceData(cOsd *Osd, const cDevice *Device, int x0, int y0, int
LastDeviceType = DeviceType;
// CAM:
if (CamSlot) {
+#if APIVERSNUM > 20302
+ cString s = cString::sprintf("CAM %d", CamSlot->MasterSlotNumber());
+#else
cString s = cString::sprintf("CAM %d", CamSlot->SlotNumber());
- Osd->DrawText(x, y1 - TinyFont->Height(), s, ColorFg, ColorBg, TinyFont);
+#endif
+ Osd->DrawText(x, y1 - TinyFont->Height(), s, ColorFg, ColorBg, TinyFont);
xs = max(xs, x + TinyFont->Width(s));
}
LastCamSlot = CamSlot;