mirror of
https://github.com/rofafor/vdr-plugin-femon.git
synced 2023-10-10 13:36:53 +02:00
Fixed scan-build issues.
This commit is contained in:
parent
91d6cb4074
commit
cba5171a09
@ -490,7 +490,6 @@ void cFemonOsd::DrawInfoWindow(void)
|
|||||||
OSDDRAWINFOLEFT(tr("Protocol"), *data.protocol);
|
OSDDRAWINFOLEFT(tr("Protocol"), *data.protocol);
|
||||||
offset += OSDROWHEIGHT;
|
offset += OSDROWHEIGHT;
|
||||||
OSDDRAWINFOLEFT(tr("Bitrate"), *data.bitrate);
|
OSDDRAWINFOLEFT(tr("Bitrate"), *data.bitrate);
|
||||||
offset += OSDROWHEIGHT;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -53,6 +53,7 @@
|
|||||||
#include "symbols/format480i.xpm"
|
#include "symbols/format480i.xpm"
|
||||||
#include "symbols/format480p.xpm"
|
#include "symbols/format480p.xpm"
|
||||||
|
|
||||||
|
static cBitmap bmOnePixel(1, 1, 1);
|
||||||
static cBitmap bmStereo(stereo_xpm);
|
static cBitmap bmStereo(stereo_xpm);
|
||||||
static cBitmap bmMonoLeft(monoleft_xpm);
|
static cBitmap bmMonoLeft(monoleft_xpm);
|
||||||
static cBitmap bmMonoRight(monoright_xpm);
|
static cBitmap bmMonoRight(monoright_xpm);
|
||||||
@ -134,6 +135,7 @@ bool cFemonSymbolCache::Populate(void)
|
|||||||
Flush();
|
Flush();
|
||||||
|
|
||||||
// pushing order must follow the enumeration - keep original proportions except for frontend status ones
|
// pushing order must follow the enumeration - keep original proportions except for frontend status ones
|
||||||
|
cacheM.Append(&bmOnePixel); // SYMBOL_ONEPIXEL
|
||||||
cacheM.Append(bmStereo.Scaled(yFactorM, yFactorM, antiAliasM)); // SYMBOL_STEREO
|
cacheM.Append(bmStereo.Scaled(yFactorM, yFactorM, antiAliasM)); // SYMBOL_STEREO
|
||||||
cacheM.Append(bmMonoLeft.Scaled(yFactorM, yFactorM, antiAliasM)); // SYMBOL_MONO_LEFT
|
cacheM.Append(bmMonoLeft.Scaled(yFactorM, yFactorM, antiAliasM)); // SYMBOL_MONO_LEFT
|
||||||
cacheM.Append(bmMonoRight.Scaled(yFactorM, yFactorM, antiAliasM)); // SYMBOL_MONO_RIGHT
|
cacheM.Append(bmMonoRight.Scaled(yFactorM, yFactorM, antiAliasM)); // SYMBOL_MONO_RIGHT
|
||||||
@ -197,7 +199,7 @@ bool cFemonSymbolCache::Flush(void)
|
|||||||
|
|
||||||
cBitmap& cFemonSymbolCache::Get(eSymbols symbolP)
|
cBitmap& cFemonSymbolCache::Get(eSymbols symbolP)
|
||||||
{
|
{
|
||||||
cBitmap *bitmapM = NULL;
|
cBitmap *bitmapM = cacheM[SYMBOL_ONEPIXEL];
|
||||||
|
|
||||||
if (symbolP < cacheM.Size())
|
if (symbolP < cacheM.Size())
|
||||||
bitmapM = cacheM[symbolP];
|
bitmapM = cacheM[symbolP];
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
#include <vdr/osd.h>
|
#include <vdr/osd.h>
|
||||||
|
|
||||||
enum eSymbols {
|
enum eSymbols {
|
||||||
|
SYMBOL_ONEPIXEL,
|
||||||
SYMBOL_STEREO,
|
SYMBOL_STEREO,
|
||||||
SYMBOL_MONO_LEFT,
|
SYMBOL_MONO_LEFT,
|
||||||
SYMBOL_MONO_RIGHT,
|
SYMBOL_MONO_RIGHT,
|
||||||
@ -77,8 +78,8 @@ public:
|
|||||||
~cFemonSymbolCache();
|
~cFemonSymbolCache();
|
||||||
void Refresh();
|
void Refresh();
|
||||||
cBitmap& Get(eSymbols symbolP);
|
cBitmap& Get(eSymbols symbolP);
|
||||||
int GetSpacing() { return int(yFactorM * DEFAULT_SPACING); }
|
int GetSpacing() { return int(yFactorM * cFemonSymbolCache::DEFAULT_SPACING); }
|
||||||
int GetRounding() { return int(yFactorM * DEFAULT_ROUNDING); }
|
int GetRounding() { return int(yFactorM * cFemonSymbolCache::DEFAULT_ROUNDING); }
|
||||||
};
|
};
|
||||||
|
|
||||||
extern cFemonSymbolCache femonSymbols;
|
extern cFemonSymbolCache femonSymbols;
|
||||||
|
Loading…
Reference in New Issue
Block a user