git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added new constructor for bbox.
[swftools.git]
/
lib
/
python
/
SWF.c
diff --git
a/lib/python/SWF.c
b/lib/python/SWF.c
index
aa2c7f3
..
9afe7de
100644
(file)
--- a/
lib/python/SWF.c
+++ b/
lib/python/SWF.c
@@
-27,6
+27,7
@@
#include "./pyutils.h"
#include "./tags.h"
#include "./taglist.h"
#include "./pyutils.h"
#include "./tags.h"
#include "./taglist.h"
+#include "./primitives.h"
/*
TODO:
/*
TODO:
@@
-72,8
+73,12
@@
static PyObject* f_create(PyObject* self, PyObject* args, PyObject* kwargs)
&obbox, filename))
return NULL;
&obbox, filename))
return NULL;
- if (!PyArg_Parse(obbox, "(iiii)", &bbox.xmin, &bbox.ymin, &bbox.xmax, &bbox.ymax))
- return NULL;
+ if (!PY_CHECK_TYPE(obbox, &BBoxClass)) {
+ obbox = f_BBox(0, obbox, 0);
+ if(!obbox)
+ return NULL;
+ }
+ bbox = bbox_getSRECT(obbox);
memset(&swf->swf, 0, sizeof(SWF));
if(filename)
memset(&swf->swf, 0, sizeof(SWF));
if(filename)
@@
-217,6
+222,8
@@
static PyObject * swf_save(PyObject* self, PyObject* args, PyObject* kwargs)
}*/
swf->firstTag = 0;
}*/
swf->firstTag = 0;
+ mylog(" %08x(%d) f_save filename=%s done\n", (int)self, self->ob_refcnt, filename);
+
return PY_NONE;
}
//----------------------------------------------------------------------------
return PY_NONE;
}
//----------------------------------------------------------------------------