git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use xpdf to write out embedded TTF fonts.
[swftools.git]
/
lib
/
python
/
primitives.c
diff --git
a/lib/python/primitives.c
b/lib/python/primitives.c
index
f473749
..
e70f28d
100644
(file)
--- a/
lib/python/primitives.c
+++ b/
lib/python/primitives.c
@@
-140,6
+140,13
@@
PyObject* f_BBox(PyObject* self, PyObject* args, PyObject* kwargs)
bbox->bbox = box;
return (PyObject*)bbox;
}
bbox->bbox = box;
return (PyObject*)bbox;
}
+PyObject* f_BBox2(SRECT box)
+{
+ BBoxObject* bbox;
+ bbox = PyObject_New(BBoxObject, &BBoxClass);
+ bbox->bbox = box;
+ return (PyObject*)bbox;
+}
static PyObject* bbox_getattr(PyObject * self, char* a)
{
BBoxObject*bbox = (BBoxObject*)self;
static PyObject* bbox_getattr(PyObject * self, char* a)
{
BBoxObject*bbox = (BBoxObject*)self;