From 8b16c0b4908f527669d64c7b76325c733d4c468c Mon Sep 17 00:00:00 2001 From: jojo61 Date: Fri, 4 Jan 2019 10:15:51 +0100 Subject: [PATCH] fix DrawPixel --- openglosd.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openglosd.cpp b/openglosd.cpp index 43caf98..cd52655 100644 --- a/openglosd.cpp +++ b/openglosd.cpp @@ -1786,7 +1786,11 @@ void cOglPixmap::DrawImage(const cPoint &Point, int ImageHandle) { } void cOglPixmap::DrawPixel(const cPoint &Point, tColor Color) { - esyslog("[softhddev] DrawPixel %d %d color %x not implemented in OpenGl OSD", Point.X(), Point.X(), Color); + cRect r(Point.X(), Point.Y(), 1, 1); + oglThread->DoCmd(new cOglCmdDrawRectangle(fb, r.X(), r.Y(), r.Width(), r.Height(), Color)); + + SetDirty(); + MarkDrawPortDirty(r); } void cOglPixmap::DrawBitmap(const cPoint &Point, const cBitmap &Bitmap, tColor ColorFg, tColor ColorBg, bool Overlay) {