Evas filters: Fix blending with fillmode "stretch"

When using stretch, all buffers were actually drawn 4 times
on top of each other. This was not visible because in most cases
these buffers were all opaque (alpha = 255 everywhere).
This commit is contained in:
Jean-Philippe Andre 2014-02-21 17:27:19 +09:00
parent 58f424a199
commit a2c3e73a87
1 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ _mapped_blend_cpu(void *data, void *drawctx,
}
else if (fillmode & EVAS_FILTER_FILL_MODE_STRETCH_X)
{
cols = 1;
cols = 0;
dw = out->cache_entry.w;
dx = 0;
}
@ -204,7 +204,7 @@ _mapped_blend_cpu(void *data, void *drawctx,
}
else if (fillmode & EVAS_FILTER_FILL_MODE_STRETCH_Y)
{
rows = 1;
rows = 0;
dh = out->cache_entry.h;
dy = 0;
}