summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2012-06-30 15:31:10 +0200
committeranbr <vdr07@deltab.de>2012-06-30 15:31:10 +0200
commitfb1ac4faa0168e4b5fc19b6eb730980fe2cbbdb1 (patch)
tree7e27cb45246d81155741b1ccf306fd0c89eb2fe9
parenta65492626c3de310cabb5f47af07774c3c473255 (diff)
downloadvdr-plugin-imonlcd-fb1ac4faa0168e4b5fc19b6eb730980fe2cbbdb1.tar.gz
vdr-plugin-imonlcd-fb1ac4faa0168e4b5fc19b6eb730980fe2cbbdb1.tar.bz2
Fix warning hidden ‘ciMonFont::DrawText’ [-Werror=overloaded-virtual] (Closes #1034)
-rw-r--r--ffont.h1
-rw-r--r--imon.c4
-rw-r--r--imon.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/ffont.h b/ffont.h
index 3521c49..2681650 100644
--- a/ffont.h
+++ b/ffont.h
@@ -66,6 +66,7 @@ private:
int Kerning(ciMonGlyph *Glyph, uint PrevSym) const;
ciMonGlyph* Glyph(uint CharCode) const;
virtual void DrawText(cBitmap*, int, int, const char*, tColor, tColor, int) const {};
+ virtual void DrawText(cPixmap*, int, int, const char*, tColor, tColor, int) const {};
public:
ciMonFont(const char *Name, int CharHeight, int CharWidth = 0);
virtual ~ciMonFont();
diff --git a/imon.c b/imon.c
index 43d48a6..789a76e 100644
--- a/imon.c
+++ b/imon.c
@@ -626,9 +626,9 @@ void ciMonLCD::setBuiltinProgressBars(int topLine, int botLine,
* \param length The length of the bar.
* \return The pixmap that represents the given length.
*/
-int ciMonLCD::lengthToPixels(int length)
+unsigned int ciMonLCD::lengthToPixels(int length)
{
- int pixLen[] =
+ unsigned int pixLen[] =
{
0x00, 0x00000080, 0x000000c0, 0x000000e0, 0x000000f0,
0x000000f8, 0x000000fc, 0x000000fe, 0x000000ff,
diff --git a/imon.h b/imon.h
index 14cff8d..0f588f7 100644
--- a/imon.h
+++ b/imon.h
@@ -109,7 +109,7 @@ protected:
void setLineLength(int topLine, int botLine, int topProgress, int botProgress);
void setBuiltinProgressBars(int topLine, int botLine, int topProgress, int botProgress);
- int lengthToPixels(int length);
+ unsigned int lengthToPixels(int length);
bool SendCmd(const uint64_t & cmdData);
bool SendCmdClock(time_t tAlarm);