0

added a nice error if c_overviewer is missing, simplified composite.py

now that c_overviewer is required, we don't need to have a PIL paste()
fallback. The next step is to remove composite.py entirely!
This commit is contained in:
Aaron Griffith
2011-03-19 18:53:29 -04:00
parent 26d781f249
commit 494caba598
3 changed files with 13 additions and 17 deletions

View File

@@ -223,6 +223,7 @@ alpha_over_wrap(PyObject *self, PyObject *args)
/* destination position read */
if (!PyArg_ParseTuple(pos, "iiii", &dx, &dy, &xsize, &ysize)) {
/* try again, but this time try to read a point */
PyErr_Clear();
xsize = 0;
ysize = 0;
if (!PyArg_ParseTuple(pos, "ii", &dx, &dy)) {