X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fpython%2Ftags.c;h=ca49a25d837dce9ac1c5a6dfe0760044dc221754;hp=455e87fc932cfab4bf7b5561ce52b16ddfedffa7;hb=6f78b0ef3998e959ce09c5ef11d46149756b682b;hpb=a61b92b4ac72cd15ee0f3165f2e7a2f5ac00f156 diff --git a/lib/python/tags.c b/lib/python/tags.c index 455e87f..ca49a25 100644 --- a/lib/python/tags.c +++ b/lib/python/tags.c @@ -186,7 +186,7 @@ static PyObject* po_create(PyObject* self, PyObject* args, PyObject* kwargs,char po->depth = depth; po->clipdepth = clipdepth; po->ratio = ratio; - po->name = (unsigned char*)name; + po->name = name; po->move = move; if(clipdepth) po->clipdepth = clipdepth; if(matrix) po->matrix = matrix_getMatrix(matrix); @@ -637,7 +637,7 @@ static PyObject* image_save(PyObject*self, PyObject*args) if(!PyArg_ParseTuple(args, "s", &filename)) return NULL; - writePNG(filename, (unsigned char*)fi->rgba ,fi->width, fi->height); + png_write(filename, (unsigned char*)fi->rgba ,fi->width, fi->height); return PY_NONE; }