summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;