From 4dd6404b32c9ec66b91064d7c8a7bc74458386b1 Mon Sep 17 00:00:00 2001 From: brindosch Date: Sun, 7 May 2017 22:34:06 +0200 Subject: [PATCH] . --- libsrc/effectengine/Effect.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libsrc/effectengine/Effect.cpp b/libsrc/effectengine/Effect.cpp index 8d2037ff..248267ad 100644 --- a/libsrc/effectengine/Effect.cpp +++ b/libsrc/effectengine/Effect.cpp @@ -628,6 +628,11 @@ PyObject* Effect::wrapImageDrawPolygon(PyObject *self, PyObject *args) if (length % 2 == 0) { QVector points; + static const QPoint pointss[3] = { + QPoint(0, 0), + QPoint(6, 3), + QPoint(0, 6) + }; char * data = PyByteArray_AS_STRING(bytearray); for (int idx=0; idx_painter; painter->setBrush(QBrush(QColor(r,g,b,a), Qt::SolidPattern)); - painter->drawPolygon(points); + painter->drawPolygon(pointss, 3); return Py_BuildValue(""); }