From: kramm Date: Thu, 30 Dec 2004 20:00:36 +0000 (+0000) Subject: added f_Matrix2() X-Git-Tag: release-0-6-3~64 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=99fdfae36ca02e0da16690b3eeb2904f906180ba added f_Matrix2() --- diff --git a/lib/python/primitives.c b/lib/python/primitives.c index 55e80d0..cbd2442 100644 --- a/lib/python/primitives.c +++ b/lib/python/primitives.c @@ -247,6 +247,14 @@ typedef struct { MATRIX matrix; } MatrixObject; +PyObject* f_Matrix2(MATRIX* m) +{ + PyObject*self = (PyObject*)PyObject_New(MatrixObject, &MatrixClass); + MatrixObject*matrix = (MatrixObject*)self; + matrix->matrix = *m; + return self; +} + PyObject* f_Matrix(PyObject* _self, PyObject* args, PyObject* kwargs) { PyObject*self = (PyObject*)PyObject_New(MatrixObject, &MatrixClass);