summaryrefslogtreecommitdiff
path: root/src/lib/evas/filters/evas_filter_displace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/filters/evas_filter_displace.c')
-rw-r--r--src/lib/evas/filters/evas_filter_displace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/evas/filters/evas_filter_displace.c b/src/lib/evas/filters/evas_filter_displace.c
index 362da634e9..aed1671897 100644
--- a/src/lib/evas/filters/evas_filter_displace.c
+++ b/src/lib/evas/filters/evas_filter_displace.c
@@ -18,7 +18,8 @@ _filter_displace_cpu_alpha_do(int w, int h, int map_w, int map_h, int intensity,
18 if (map_y >= map_h) map_y = 0; 18 if (map_y >= map_h) map_y = 0;
19 map = map_start + (map_y * map_stride); 19 map = map_start + (map_y * map_stride);
20 20
21 for (x = 0, map_x = 0; x < w; x++, dst++, src++, map_x++) 21 for (x = 0, map_x = 0; x < w;
22 x++, dst++, src++, map_x++, map += sizeof(DATA32))
22 { 23 {
23 int offx = 0, offy = 0, offx_dec = 0, offy_dec = 0, val = 0; 24 int offx = 0, offy = 0, offx_dec = 0, offy_dec = 0, val = 0;
24 Eina_Bool out = 0; 25 Eina_Bool out = 0;
@@ -29,7 +30,6 @@ _filter_displace_cpu_alpha_do(int w, int h, int map_w, int map_h, int intensity,
29 map_x = 0; 30 map_x = 0;
30 map = map_start + (map_y * map_stride); 31 map = map_start + (map_y * map_stride);
31 } 32 }
32 else map += sizeof(DATA32);
33 33
34 // x 34 // x
35 val = ((int) map[dx] - 128) * intensity; 35 val = ((int) map[dx] - 128) * intensity;
@@ -92,7 +92,8 @@ _filter_displace_cpu_rgba_do(int w, int h, int map_w, int map_h, int intensity,
92 if (map_y >= map_h) map_y = 0; 92 if (map_y >= map_h) map_y = 0;
93 map = (DATA8 *) (map_start + map_y * map_w); 93 map = (DATA8 *) (map_start + map_y * map_w);
94 94
95 for (x = 0, map_x = 0; x < w; x++, dst++, src++, map_x++) 95 for (x = 0, map_x = 0; x < w;
96 x++, dst++, src++, map_x++, map += sizeof(DATA32))
96 { 97 {
97 int offx = 0, offy = 0, offx_dec = 0, offy_dec = 0, val = 0; 98 int offx = 0, offy = 0, offx_dec = 0, offy_dec = 0, val = 0;
98 DATA32 col = 0; 99 DATA32 col = 0;
@@ -104,7 +105,6 @@ _filter_displace_cpu_rgba_do(int w, int h, int map_w, int map_h, int intensity,
104 map_x = 0; 105 map_x = 0;
105 map = (DATA8 *) (map_start + map_y * map_w); 106 map = (DATA8 *) (map_start + map_y * map_w);
106 } 107 }
107 else map += sizeof(DATA32);
108 108
109 if (!map[ALPHA]) continue; 109 if (!map[ALPHA]) continue;
110 if (!unpremul && map[ALPHA] != 0xFF) 110 if (!unpremul && map[ALPHA] != 0xFF)