mirror of
https://github.com/rofafor/vdr-plugin-femon.git
synced 2023-10-10 11:36:53 +00:00
Added cppcheck target into Makefile.
This commit is contained in:
parent
a840fc9931
commit
c408ea1cd9
4
HISTORY
4
HISTORY
@ -414,3 +414,7 @@ VDR Plugin 'femon' Revision History
|
|||||||
|
|
||||||
- Updated for vdr-1.7.18.
|
- Updated for vdr-1.7.18.
|
||||||
- Added scaling for symbols.
|
- Added scaling for symbols.
|
||||||
|
|
||||||
|
2011-xx-xx: Version 1.7.11
|
||||||
|
|
||||||
|
- Added cppcheck target into Makefile.
|
3
Makefile
3
Makefile
@ -128,3 +128,6 @@ dist: $(I18Npo) clean
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
@-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot
|
@-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot
|
||||||
|
|
||||||
|
cppcheck: $(OBJS)
|
||||||
|
@cppcheck --enable=information,style,unusedFunction -v -f $(OBJS:%.o=%.c)
|
||||||
|
2
femon.c
2
femon.c
@ -18,7 +18,7 @@
|
|||||||
#error "VDR-1.7.18 API version or greater is required!"
|
#error "VDR-1.7.18 API version or greater is required!"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const char VERSION[] = "1.7.10";
|
static const char VERSION[] = "1.7.11";
|
||||||
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");
|
||||||
|
|
||||||
|
18
femonosd.c
18
femonosd.c
@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __STDC_FORMAT_MACROS
|
#ifndef __STDC_FORMAT_MACROS
|
||||||
#define __STDC_FORMAT_MACROS
|
#define __STDC_FORMAT_MACROS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
@ -241,14 +241,15 @@ cFemonOsd::~cFemonOsd(void)
|
|||||||
void cFemonOsd::DrawStatusWindow(void)
|
void cFemonOsd::DrawStatusWindow(void)
|
||||||
{
|
{
|
||||||
cMutexLock lock(&m_Mutex);
|
cMutexLock lock(&m_Mutex);
|
||||||
cBitmap *bm = NULL;
|
|
||||||
int offset = 0;
|
|
||||||
int x = OSDWIDTH - OSDROUNDING;
|
|
||||||
int y = 0;
|
|
||||||
eTrackType track = cDevice::PrimaryDevice()->GetCurrentAudioTrack();
|
|
||||||
cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel());
|
cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel());
|
||||||
|
|
||||||
if (m_Osd && channel) {
|
if (m_Osd && channel) {
|
||||||
|
cBitmap *bm = NULL;
|
||||||
|
int offset = 0;
|
||||||
|
int x = OSDWIDTH - OSDROUNDING;
|
||||||
|
int y = 0;
|
||||||
|
eTrackType track = cDevice::PrimaryDevice()->GetCurrentAudioTrack();
|
||||||
|
|
||||||
OSDDRAWSTATUSTITLEBAR(*cString::sprintf("%d%s %s", m_Number ? m_Number : channel->Number(), m_Number ? "-" : "", channel->ShortName(true)));
|
OSDDRAWSTATUSTITLEBAR(*cString::sprintf("%d%s %s", m_Number ? m_Number : channel->Number(), m_Number ? "-" : "", channel->ShortName(true)));
|
||||||
if (m_SvdrpFrontend >= 0) {
|
if (m_SvdrpFrontend >= 0) {
|
||||||
bm = &OSDSYMBOL(SYMBOL_SVDRP);
|
bm = &OSDSYMBOL(SYMBOL_SVDRP);
|
||||||
@ -364,12 +365,13 @@ void cFemonOsd::DrawStatusWindow(void)
|
|||||||
void cFemonOsd::DrawInfoWindow(void)
|
void cFemonOsd::DrawInfoWindow(void)
|
||||||
{
|
{
|
||||||
cMutexLock lock(&m_Mutex);
|
cMutexLock lock(&m_Mutex);
|
||||||
int offset = 0;
|
|
||||||
cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel());
|
cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel());
|
||||||
eTrackType track = cDevice::PrimaryDevice()->GetCurrentAudioTrack();
|
|
||||||
|
|
||||||
if (m_Osd && channel) {
|
if (m_Osd && channel) {
|
||||||
|
int offset = 0;
|
||||||
|
eTrackType track = cDevice::PrimaryDevice()->GetCurrentAudioTrack();
|
||||||
cDvbTransponderParameters dtp(channel->Parameters());
|
cDvbTransponderParameters dtp(channel->Parameters());
|
||||||
|
|
||||||
switch (m_DisplayMode) {
|
switch (m_DisplayMode) {
|
||||||
case eFemonModeTransponder:
|
case eFemonModeTransponder:
|
||||||
OSDDRAWINFOTITLEBAR(tr("Transponder Information"));
|
OSDDRAWINFOTITLEBAR(tr("Transponder Information"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user