summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Reufer <thomas@reufer.ch>2015-03-24 18:21:40 +0100
committerThomas Reufer <thomas@reufer.ch>2015-03-24 18:21:40 +0100
commit8cb1d87cd4a9bc1abde2301c3e71a27f49600892 (patch)
tree7fd18ee8136417588acee42acc6cbc5b98db0ba4
parent138bbc1a5f1d6decf00dfecdbe332fbdea160555 (diff)
downloadvdr-plugin-rpihddevice-8cb1d87cd4a9bc1abde2301c3e71a27f49600892.tar.gz
vdr-plugin-rpihddevice-8cb1d87cd4a9bc1abde2301c3e71a27f49600892.tar.bz2
added missing functions to cOvgOsd
-rw-r--r--ovgosd.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/ovgosd.c b/ovgosd.c
index 91c2c2f..708dd3f 100644
--- a/ovgosd.c
+++ b/ovgosd.c
@@ -2375,6 +2375,34 @@ public:
Bitmap, FactorX, FactorY);
}
+ virtual void DrawImage(const cPoint &Point, int ImageHandle)
+ {
+ if (!m_pixmaps[0])
+ return;
+
+ m_pixmaps[0]->DrawImage(Point - m_pixmaps[0]->ViewPort().Point(),
+ ImageHandle);
+ }
+
+ virtual void DrawImage(const cPoint &Point, const cImage &Image)
+ {
+ if (!m_pixmaps[0])
+ return;
+
+ m_pixmaps[0]->DrawImage(Point - m_pixmaps[0]->ViewPort().Point(),
+ Image);
+ }
+
+ virtual void DrawRectangle(int x1, int y1, int x2, int y2, tColor Color)
+ {
+ if (!m_pixmaps[0])
+ return;
+
+ m_pixmaps[0]->DrawRectangle(
+ cRect(x1, y1, x2 - x1 + 1, y2 - y1 + 1).Shifted(
+ - m_pixmaps[0]->ViewPort().Point()), Color);
+ }
+
virtual void DrawEllipse(int x1, int y1, int x2, int y2, tColor Color,
int Quadrants = 0)
{