This commit is contained in:
brindosch 2017-05-07 18:23:43 +02:00
parent fa71d14c9f
commit 333206ac7f
1 changed files with 2 additions and 2 deletions

View File

@ -637,7 +637,7 @@ PyObject* Effect::wrapImageDrawPolygon(PyObject *self, PyObject *args)
QPainter * painter = effect->_painter; QPainter * painter = effect->_painter;
painter->setBrush(QBrush(QColor(r,g,b,a), Qt::SolidPattern)); painter->setBrush(QBrush(QColor(r,g,b,a), Qt::SolidPattern));
effect->_painter->drawPolygon(points, length/2); painter->drawPolygon(points);
return Py_BuildValue(""); return Py_BuildValue("");
} }
@ -661,7 +661,7 @@ PyObject* Effect::wrapImageDrawPie(PyObject *self, PyObject *args)
Effect * effect = getEffect(); Effect * effect = getEffect();
int argCount = PyTuple_Size(args); int argCount = PyTuple_Size(args);
int r, g, b, radius, int r, g, b, radius;
int startAngle = 0; int startAngle = 0;
int spanAngle = 359; int spanAngle = 359;
int a = 255; int a = 255;