mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
The LCARS skin now only displays devices that can actually receive channels
This commit is contained in:
parent
95e180a3e3
commit
e16e8b182f
@ -1311,6 +1311,8 @@ Reinhard Nissl <rnissl@gmx.de>
|
||||
transponder changes are recognized
|
||||
for helping to debug switching into time shift mode when pausing live video
|
||||
for fixing a possible high CPU load when pausing replay
|
||||
for suggesting that the LCARS skin should only displays devices that can actually
|
||||
receive channels
|
||||
|
||||
Richard Robson <richard_robson@beeb.net>
|
||||
for reporting freezing replay if a timer starts while in Transfer Mode from the
|
||||
|
2
HISTORY
2
HISTORY
@ -7153,3 +7153,5 @@ Video Disk Recorder Revision History
|
||||
- Added a missing template specification to the c'tor of cSortedTimers (thanks to Udo
|
||||
Richter).
|
||||
- Fixed the background color of the Transfer Mode indicator bitmap in the LCARS skin.
|
||||
- The LCARS skin now only displays devices that can actually receive channels, leaving
|
||||
out, for instance, pure replay devices (suggested by Reinhard Nissl).
|
||||
|
10
skinlcars.c
10
skinlcars.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: skinlcars.c 2.3 2012/06/03 15:59:26 kls Exp $
|
||||
* $Id: skinlcars.c 2.4 2012/06/04 08:05:03 kls Exp $
|
||||
*/
|
||||
|
||||
// "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures,
|
||||
@ -1192,6 +1192,7 @@ void cSkinLCARSDisplayMenu::DrawTimers(void)
|
||||
int Slot = 0;
|
||||
for (int i = 0; i < cDevice::NumDevices(); i++) {
|
||||
if (const cDevice *Device = cDevice::GetDevice(i)) {
|
||||
if (Device->NumProvidedSystems()) {
|
||||
if (!deviceRecording[Device->DeviceNumber()]) {
|
||||
if (Slot < FreeDeviceSlots.Size()) {
|
||||
y = FreeDeviceSlots[Slot];
|
||||
@ -1204,6 +1205,7 @@ void cSkinLCARSDisplayMenu::DrawTimers(void)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
osd->DrawText(xs02, ys00, itoa(Timers.Count()), Theme.Color(clrMenuFrameFg), frameColor, font, xs03 - xs02, ys01 - ys00, taBottom | taLeft | taBorder);
|
||||
osd->DrawText(xs08, ys00, itoa(cDevice::NumDevices()), Theme.Color(clrMenuFrameFg), frameColor, font, xs09 - xs08, ys01 - ys00, taBottom | taRight | taBorder);
|
||||
lastSignalDisplay = 0;
|
||||
@ -1231,9 +1233,11 @@ void cSkinLCARSDisplayMenu::DrawDevice(const cDevice *Device)
|
||||
void cSkinLCARSDisplayMenu::DrawDevices(void)
|
||||
{
|
||||
for (int i = 0; i < cDevice::NumDevices(); i++) {
|
||||
if (const cDevice *Device = cDevice::GetDevice(i))
|
||||
if (const cDevice *Device = cDevice::GetDevice(i)) {
|
||||
if (Device->NumProvidedSystems())
|
||||
DrawDevice(Device);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void cSkinLCARSDisplayMenu::DrawLiveIndicator(void)
|
||||
@ -1264,10 +1268,12 @@ void cSkinLCARSDisplayMenu::DrawSignals(void)
|
||||
if (initial || Now - lastSignalDisplay >= SIGNALDISPLAYDELTA) {
|
||||
for (int i = 0; i < cDevice::NumDevices(); i++) {
|
||||
if (const cDevice *Device = cDevice::GetDevice(i)) {
|
||||
if (Device->NumProvidedSystems()) {
|
||||
if (int y = deviceOffset[i])
|
||||
DrawDeviceSignal(osd, Device, xs + lineHeight / 2, y, xs11, y + lineHeight, lastSignalStrength[i], lastSignalQuality[i], initial);
|
||||
}
|
||||
}
|
||||
}
|
||||
lastSignalDisplay = Now;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user