mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
update
This commit is contained in:
parent
fa71d14c9f
commit
333206ac7f
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user