diff options
author | Karl Melscher <kamel5@gmx.net> | 2018-03-07 16:01:16 +0100 |
---|---|---|
committer | Karl Melscher <kamel5@gmx.net> | 2018-03-07 16:01:16 +0100 |
commit | 33090041b19df316828dc35db706cf347b3e6da5 (patch) | |
tree | c606915b9c0da29ccc691888601eb962d6354090 /lcarsng.c | |
parent | 6c9003ee049abbb9b3007bcc81f9eb9b4b7518dd (diff) | |
download | skin-lcarsng-33090041b19df316828dc35db706cf347b3e6da5.tar.gz skin-lcarsng-33090041b19df316828dc35db706cf347b3e6da5.tar.bz2 |
MasterSlotNumber for VDR > 2.3.2
Diffstat (limited to 'lcarsng.c')
-rw-r--r-- | lcarsng.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |