summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
{