0

Fix an issue with baked in overlays not having any alpha, tested with non baked in too and no change there

This commit is contained in:
Richard Pastrick
2012-06-07 14:58:56 -07:00
parent 05bfaaf967
commit 721ab67989
2 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@
// increment this value if you've made a change to the c extesion
// and want to force users to rebuild
#define OVERVIEWER_EXTENSION_VERSION 36
#define OVERVIEWER_EXTENSION_VERSION 37
/* Python PIL, and numpy headers */
#include <Python.h>

View File

@@ -82,8 +82,8 @@ overlay_draw(void *data, RenderState *state, PyObject *src, PyObject *mask, PyOb
/* do the overlay */
if (a > 0) {
alpha_over(state->img, self->white_color, self->facemask_top, state->imgx, state->imgy + increment, 0, 0);
tint_with_mask(state->img, r, g, b, a, self->facemask_top, state->imgx, state->imgy + increment, 0, 0);
alpha_over_full(state->img, self->white_color, self->facemask_top, a/255.f, state->imgx, state->imgy + increment, 0, 0);
tint_with_mask(state->img, r, g, b, 255, self->facemask_top, state->imgx, state->imgy + increment, 0, 0);
}
}