mirror of
https://github.com/rofafor/vdr-plugin-femon.git
synced 2023-10-10 13:36:53 +02:00
Fixed device switching.
This commit is contained in:
parent
dfc66b3d69
commit
9c085fea51
4
HISTORY
4
HISTORY
@ -395,3 +395,7 @@ VDR Plugin 'femon' Revision History
|
|||||||
- Updated for vdr-1.7.13.
|
- Updated for vdr-1.7.13.
|
||||||
- Added a setup option to downscale the OSD size.
|
- Added a setup option to downscale the OSD size.
|
||||||
- Updated Estonian translation (Thanks to Arthur Konovalov).
|
- Updated Estonian translation (Thanks to Arthur Konovalov).
|
||||||
|
|
||||||
|
2010-xx-xx: Version 1.7.8
|
||||||
|
|
||||||
|
- Fixed device switching.
|
||||||
|
2
Makefile
2
Makefile
@ -33,7 +33,7 @@ TMPDIR = /tmp
|
|||||||
|
|
||||||
### Make sure that necessary options are included:
|
### Make sure that necessary options are included:
|
||||||
|
|
||||||
include $(VDRDIR)/Make.global
|
-include $(VDRDIR)/Make.global
|
||||||
|
|
||||||
### Allow user defined options to overwrite defaults:
|
### Allow user defined options to overwrite defaults:
|
||||||
|
|
||||||
|
2
femon.c
2
femon.c
@ -18,7 +18,7 @@
|
|||||||
#error "VDR-1.7.13 API version or greater is required!"
|
#error "VDR-1.7.13 API version or greater is required!"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const char VERSION[] = "1.7.7";
|
static const char VERSION[] = "1.7.8";
|
||||||
static const char DESCRIPTION[] = trNOOP("DVB Signal Information Monitor (OSD)");
|
static const char DESCRIPTION[] = trNOOP("DVB Signal Information Monitor (OSD)");
|
||||||
static const char MAINMENUENTRY[] = trNOOP("Signal Information");
|
static const char MAINMENUENTRY[] = trNOOP("Signal Information");
|
||||||
|
|
||||||
|
@ -697,7 +697,7 @@ bool cFemonOsd::DeviceSwitch(int direction)
|
|||||||
cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel());
|
cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel());
|
||||||
if (channel) {
|
if (channel) {
|
||||||
for (int i = 0; i < cDevice::NumDevices() - 1; i++) {
|
for (int i = 0; i < cDevice::NumDevices() - 1; i++) {
|
||||||
if (direction) {
|
if (direction >= 0) {
|
||||||
if (++device >= cDevice::NumDevices())
|
if (++device >= cDevice::NumDevices())
|
||||||
device = 0;
|
device = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user