From 8cb1d87cd4a9bc1abde2301c3e71a27f49600892 Mon Sep 17 00:00:00 2001 From: Thomas Reufer Date: Tue, 24 Mar 2015 18:21:40 +0100 Subject: added missing functions to cOvgOsd --- ovgosd.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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) { -- cgit v1.2.3