0

Fix bad handle of both alpha layers being zero in composite.c

This commit is contained in:
Alejandro Aguilera
2011-08-23 21:37:10 +02:00
parent 85e8a1e889
commit 8d398864e3

View File

@@ -194,7 +194,7 @@ alpha_over_full(PyObject *dest, PyObject *src, PyObject *mask, float overall_alp
}
/* special cases */
if (in_alpha == 255 || *outmask == 0) {
if (in_alpha == 255 || (*outmask == 0 && in_alpha > 0)) {
*outmask = in_alpha;
*out = *in;