summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-02-21 17:27:19 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-21 17:30:49 +0900
commita2c3e73a87e58975e14ef34afdca6e53f7a9199e (patch)
treeffb500294faf0b18c6d5eb6223bc27e44accf147 /src
parent58f424a199829171ff77e6a46f0f5850fdce73fd (diff)
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).
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/filters/evas_filter_blend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/filters/evas_filter_blend.c b/src/lib/evas/filters/evas_filter_blend.c
index d7585f1d44..95e48876ee 100644
--- a/src/lib/evas/filters/evas_filter_blend.c
+++ b/src/lib/evas/filters/evas_filter_blend.c
@@ -181,7 +181,7 @@ _mapped_blend_cpu(void *data, void *drawctx,
181 } 181 }
182 else if (fillmode & EVAS_FILTER_FILL_MODE_STRETCH_X) 182 else if (fillmode & EVAS_FILTER_FILL_MODE_STRETCH_X)
183 { 183 {
184 cols = 1; 184 cols = 0;
185 dw = out->cache_entry.w; 185 dw = out->cache_entry.w;
186 dx = 0; 186 dx = 0;
187 } 187 }
@@ -204,7 +204,7 @@ _mapped_blend_cpu(void *data, void *drawctx,
204 } 204 }
205 else if (fillmode & EVAS_FILTER_FILL_MODE_STRETCH_Y) 205 else if (fillmode & EVAS_FILTER_FILL_MODE_STRETCH_Y)
206 { 206 {
207 rows = 1; 207 rows = 0;
208 dh = out->cache_entry.h; 208 dh = out->cache_entry.h;
209 dy = 0; 209 dy = 0;
210 } 210 }