diff options
author | Thomas Reufer <thomas@reufer.ch> | 2015-03-24 18:21:40 +0100 |
---|---|---|
committer | Thomas Reufer <thomas@reufer.ch> | 2015-03-24 18:21:40 +0100 |
commit | 8cb1d87cd4a9bc1abde2301c3e71a27f49600892 (patch) | |
tree | 7fd18ee8136417588acee42acc6cbc5b98db0ba4 | |
parent | 138bbc1a5f1d6decf00dfecdbe332fbdea160555 (diff) | |
download | vdr-plugin-rpihddevice-8cb1d87cd4a9bc1abde2301c3e71a27f49600892.tar.gz vdr-plugin-rpihddevice-8cb1d87cd4a9bc1abde2301c3e71a27f49600892.tar.bz2 |
added missing functions to cOvgOsd
-rw-r--r-- | ovgosd.c | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -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) { |