summaryrefslogtreecommitdiff
path: root/src/bin/image_data_argb_alpha.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/image_data_argb_alpha.c')
-rw-r--r--src/bin/image_data_argb_alpha.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/bin/image_data_argb_alpha.c b/src/bin/image_data_argb_alpha.c
index d0604ca..541eb1b 100644
--- a/src/bin/image_data_argb_alpha.c
+++ b/src/bin/image_data_argb_alpha.c
@@ -26,14 +26,14 @@ static void _setup(void)
26 { 26 {
27 o = eo_add(EVAS_IMAGE_CLASS, evas); 27 o = eo_add(EVAS_IMAGE_CLASS, evas);
28 o_images[i] = o; 28 o_images[i] = o;
29 if (o) 29 eo_do(o,
30 eo_do(o, evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC), 30 evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
31 evas_obj_image_colorspace_set(EVAS_COLORSPACE_ARGB8888), 31 evas_obj_image_colorspace_set(EVAS_COLORSPACE_ARGB8888),
32 evas_obj_image_size_set(640, 480), 32 evas_obj_image_size_set(640, 480),
33 evas_obj_image_alpha_set(1), 33 evas_obj_image_alpha_set(1),
34 evas_obj_image_fill_set(0, 0, 640, 480), 34 evas_obj_image_fill_set(0, 0, 640, 480),
35 evas_obj_size_set(640, 480), 35 evas_obj_size_set(640, 480),
36 evas_obj_visibility_set(EINA_TRUE)); 36 evas_obj_visibility_set(EINA_TRUE));
37 } 37 }
38 done = 0; 38 done = 0;
39} 39}
@@ -58,12 +58,12 @@ static void _loop(double t, int f)
58 h = 480; 58 h = 480;
59 x = (win_w / 2) - (w / 2); 59 x = (win_w / 2) - (w / 2);
60 y = (win_h / 2) - (h / 2); 60 y = (win_h / 2) - (h / 2);
61 if (o_images[i]) 61 eo_do(o_images[i],
62 eo_do(o_images[i], evas_obj_position_set(x, y), 62 evas_obj_position_set(x, y),
63 evas_obj_size_set(w, h), 63 evas_obj_size_set(w, h),
64 evas_obj_image_fill_set(0, 0, w, h), 64 evas_obj_image_fill_set(0, 0, w, h),
65 data = evas_obj_image_data_get(1), 65 data = evas_obj_image_data_get(1),
66 st = evas_obj_image_stride_get()); 66 st = evas_obj_image_stride_get());
67 st = st >> 2; 67 st = st >> 2;
68 p = data; 68 p = data;
69 for (y = 0; y < h; y++) 69 for (y = 0; y < h; y++)
@@ -86,9 +86,9 @@ static void _loop(double t, int f)
86 } 86 }
87 p += (st - w); 87 p += (st - w);
88 } 88 }
89 if (o_images[i]) 89 eo_do(o_images[i],
90 eo_do(o_images[i], evas_obj_image_data_set(data), 90 evas_obj_image_data_set(data),
91 evas_obj_image_data_update_add( 0, 0, w, h)); 91 evas_obj_image_data_update_add( 0, 0, w, h));
92 } 92 }
93 FPS_STD(NAME); 93 FPS_STD(NAME);
94} 94}