- if (!PyArg_ParseTupleAndKeywords(args, kwargs, "iiii", kwlist,
- &box.xmin,
- &box.ymin,
- &box.xmax,
- &box.ymax));
- return NULL;
- mylog("+%08x(%d) bbox_new(%d,%d,%d,%d)\n", (int)self, self->ob_refcnt, box.xmin, box.ymin, box.xmax,box.ymax);
+ box.xmin = (int)(xmin*20);
+ box.ymin = (int)(ymin*20);
+ box.xmax = (int)(xmax*20);
+ box.ymax = (int)(ymax*20);
+ mylog("+%08x(%d) bbox_new(%d,%d,%d,%d)\n", (int)self, self?self->ob_refcnt:0, box.xmin, box.ymin, box.xmax,box.ymax);
+ bbox = PyObject_New(BBoxObject, &BBoxClass);
+ bbox->bbox = box;
+ return (PyObject*)bbox;
+}
+PyObject* f_BBox2(SRECT box)
+{
+ BBoxObject* bbox;