From 33090041b19df316828dc35db706cf347b3e6da5 Mon Sep 17 00:00:00 2001 From: Karl Melscher Date: Wed, 7 Mar 2018 16:01:16 +0100 Subject: MasterSlotNumber for VDR > 2.3.2 --- lcarsng.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3