cleanup, remove warning, useless if and tab .

devs/cedric/efl-1.11
Cedric BAIL 9 years ago
parent 281bbd90fd
commit 3ef31223f6
  1. 21
      src/bin/about.c
  2. 16
      src/bin/image_blend_border.c
  3. 18
      src/bin/image_blend_border_recolor.c
  4. 17
      src/bin/image_blend_fade_pow2_unscaled.c
  5. 16
      src/bin/image_blend_fade_unscaled.c
  6. 6
      src/bin/image_blend_many_smooth_same_scaled.c
  7. 16
      src/bin/image_blend_nearest_same_scaled.c
  8. 16
      src/bin/image_blend_nearest_scaled.c
  9. 16
      src/bin/image_blend_nearest_solid_same_scaled.c
  10. 16
      src/bin/image_blend_nearest_solid_scaled.c
  11. 21
      src/bin/image_blend_occlude1.c
  12. 21
      src/bin/image_blend_occlude1_few.c
  13. 21
      src/bin/image_blend_occlude1_many.c
  14. 21
      src/bin/image_blend_occlude1_very_many.c
  15. 21
      src/bin/image_blend_occlude2.c
  16. 21
      src/bin/image_blend_occlude2_few.c
  17. 21
      src/bin/image_blend_occlude2_many.c
  18. 21
      src/bin/image_blend_occlude2_very_many.c
  19. 21
      src/bin/image_blend_occlude3.c
  20. 21
      src/bin/image_blend_occlude3_few.c
  21. 21
      src/bin/image_blend_occlude3_many.c
  22. 21
      src/bin/image_blend_occlude3_very_many.c
  23. 16
      src/bin/image_blend_smooth_same_scaled.c
  24. 16
      src/bin/image_blend_smooth_scaled.c
  25. 16
      src/bin/image_blend_smooth_solid_same_scaled.c
  26. 16
      src/bin/image_blend_smooth_solid_scaled.c
  27. 16
      src/bin/image_blend_solid_border.c
  28. 17
      src/bin/image_blend_solid_fade_pow2_unscaled.c
  29. 17
      src/bin/image_blend_solid_fade_unscaled.c
  30. 18
      src/bin/image_blend_solid_middle_border.c
  31. 17
      src/bin/image_blend_solid_middle_unscaled.c
  32. 13
      src/bin/image_blend_solid_unscaled.c
  33. 13
      src/bin/image_blend_unscaled.c
  34. 23
      src/bin/image_crossfade.c
  35. 34
      src/bin/image_data_argb.c
  36. 34
      src/bin/image_data_argb_alpha.c
  37. 36
      src/bin/image_data_ycbcr601pl.c
  38. 34
      src/bin/image_data_ycbcr601pl_map_nearest_solid_rotate.c
  39. 32
      src/bin/image_data_ycbcr601pl_map_solid_rotate.c
  40. 47
      src/bin/image_data_ycbcr601pl_wide_stride.c
  41. 31
      src/bin/image_map_3d_1.c
  42. 29
      src/bin/image_map_3d_2.c
  43. 24
      src/bin/image_map_3d_3.c
  44. 20
      src/bin/image_map_3d_4.c
  45. 31
      src/bin/image_map_3d_5.c
  46. 31
      src/bin/image_map_3d_6.c
  47. 53
      src/bin/image_map_3d_flow.c
  48. 18
      src/bin/image_map_color_alpha_nearest_rotate.c
  49. 18
      src/bin/image_map_color_alpha_nearest_solid_rotate.c
  50. 16
      src/bin/image_map_color_alpha_rotate.c
  51. 16
      src/bin/image_map_color_alpha_solid_rotate.c
  52. 18
      src/bin/image_map_color_nearest_rotate.c
  53. 18
      src/bin/image_map_color_nearest_solid_rotate.c
  54. 16
      src/bin/image_map_color_rotate.c
  55. 16
      src/bin/image_map_color_solid_rotate.c
  56. 18
      src/bin/image_map_nearest_rotate.c
  57. 10
      src/bin/image_map_nearest_solid_rotate.c
  58. 2
      src/bin/image_map_rotate.c
  59. 16
      src/bin/image_map_solid_rotate.c
  60. 2
      src/bin/image_quality_scale.c
  61. 23
      src/bin/proxy_image.c
  62. 23
      src/bin/proxy_image_offscreen.c
  63. 36
      src/bin/proxy_text_fixed.c
  64. 62
      src/bin/proxy_text_random.c
  65. 12
      src/bin/rect_blend.c
  66. 2
      src/bin/rect_blend_few.c
  67. 12
      src/bin/rect_blend_pow2.c
  68. 2
      src/bin/rect_blend_pow2_few.c
  69. 12
      src/bin/rect_solid.c
  70. 2
      src/bin/rect_solid_few.c
  71. 27
      src/bin/text_basic.c
  72. 4
      src/bin/text_change.c
  73. 26
      src/bin/text_styles.c
  74. 4
      src/bin/text_styles_different_strings.c
  75. 29
      src/bin/textblock_auto_align.c
  76. 25
      src/bin/textblock_basic.c
  77. 28
      src/bin/textblock_intl.c
  78. 27
      src/bin/textblock_text_append.c
  79. 7
      src/bin/widgets_file_icons.c
  80. 7
      src/bin/widgets_file_icons_2.c
  81. 7
      src/bin/widgets_file_icons_2_grouped.c
  82. 7
      src/bin/widgets_file_icons_2_same.c
  83. 7
      src/bin/widgets_file_icons_2_same_grouped.c
  84. 7
      src/bin/widgets_file_icons_3.c
  85. 7
      src/bin/widgets_file_icons_4.c
  86. 7
      src/bin/widgets_list_1.c
  87. 7
      src/bin/widgets_list_1_grouped.c
  88. 7
      src/bin/widgets_list_2.c
  89. 7
      src/bin/widgets_list_2_grouped.c
  90. 9
      src/bin/widgets_list_3.c
  91. 12
      src/bin/widgets_list_3_grouped.c
  92. 9
      src/bin/widgets_list_4_grouped.c

@ -9,10 +9,9 @@ _setup(void)
Evas_Textblock_Style *st;
o = eo_add(EVAS_TEXTBLOCK_CLASS, evas);
if (o)
eo_do(o, evas_obj_position_set(10, 40),
evas_obj_size_set(win_w - 20, win_h - 50),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o, evas_obj_position_set(10, 40),
evas_obj_size_set(win_w - 20, win_h - 50),
evas_obj_visibility_set(EINA_TRUE));
st = evas_textblock_style_new();
evas_textblock_style_set
(st,
@ -22,10 +21,9 @@ _setup(void)
"p='+ font=Vera font_size=10 align=left'"
"/p='- \n \n'"
);
if (o)
eo_do(o, evas_obj_textblock_style_set(st),
evas_obj_textblock_clear(),
evas_obj_textblock_text_markup_set
eo_do(o, evas_obj_textblock_style_set(st),
evas_obj_textblock_clear(),
evas_obj_textblock_text_markup_set
("<center>"
"Enlightenment used to be a window manager project, but "
"since has changed a lot to become a miniature desktop and mobile "
@ -57,7 +55,8 @@ _cleanup(void)
}
static void
_loop(double t __UNUSED__, int f __UNUSED__)
_loop(double t EINA_UNUSED,
int f EINA_UNUSED)
{
}
@ -66,8 +65,8 @@ _key(char *key)
{
if ((!strcmp(key, "Escape")) || (!strcmp(key, "q")) || (!strcmp(key, "Q")))
{
_cleanup();
ui_menu();
_cleanup();
ui_menu();
}
}

@ -25,10 +25,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("bar.png"), NULL),
evas_obj_image_border_set(6, 6, 6, 6),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_file_set(build_path("bar.png"), NULL),
evas_obj_image_border_set(6, 6, 6, 6),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -55,10 +55,10 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
eo_do(o_images[i],
evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
}
FPS_STD(NAME);
}

@ -25,11 +25,11 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("pan.png"), NULL),
evas_obj_color_set(64, 64, 64, 255),
evas_obj_image_border_set(3, 3, 3, 3),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_file_set(build_path("pan.png"), NULL),
evas_obj_color_set(64, 64, 64, 255),
evas_obj_image_border_set(3, 3, 3, 3),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -56,10 +56,10 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
eo_do(o_images[i],
evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
}
FPS_STD(NAME);
}

@ -27,15 +27,15 @@ static void _setup(void)
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160));
eo_do(o,
evas_obj_image_file_set(build_path("logo.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160));
a = 256 - (1 << ((rnd() % 8) + 1));
if (a < 128) a = 128;
if (o)
eo_do(o, evas_obj_color_set(a, a, a, a),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_color_set(a, a, a, a),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -60,8 +60,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y));
eo_do(o_images[i], evas_obj_position_set(x, y));
}
FPS_STD(NAME);
}

@ -26,14 +26,13 @@ static void _setup(void)
int a;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160));
a = rnd()&0xff;
if (o)
eo_do(o, evas_obj_color_set(a, a, a, a),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_file_set(build_path("logo.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_color_set(a, a, a, a),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -58,8 +57,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y));
eo_do(o_images[i], evas_obj_position_set(x, y));
}
FPS_STD(NAME);
}

@ -30,8 +30,7 @@ static void _setup(void)
n = rnd() % 100;
w = 3 + ((n * (60 - 3)) / 100);
h = 4 + ((n * (80 - 4)) / 100);
if (o)
eo_do(o,
eo_do(o,
evas_obj_image_file_set(build_path("logo.png"), NULL),
evas_obj_image_smooth_scale_set(1),
evas_obj_size_set(w, h),
@ -60,8 +59,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (win_w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (win_h / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y));
eo_do(o_images[i], evas_obj_position_set(x, y));
}
FPS_STD(NAME);
}

@ -25,10 +25,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
evas_obj_image_smooth_scale_set(0),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_file_set(build_path("logo.png"), NULL),
evas_obj_image_smooth_scale_set(0),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -55,10 +55,10 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
eo_do(o_images[i],
evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
}
FPS_STD(NAME);
}

@ -25,10 +25,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
evas_obj_image_smooth_scale_set(0),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_file_set(build_path("logo.png"), NULL),
evas_obj_image_smooth_scale_set(0),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -55,10 +55,10 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
eo_do(o_images[i],
evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
}
FPS_STD(NAME);
}

@ -25,10 +25,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_image_smooth_scale_set(0),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_image_smooth_scale_set(0),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -55,10 +55,10 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
eo_do(o_images[i],
evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
}
FPS_STD(NAME);
}

@ -25,10 +25,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_image_smooth_scale_set(0),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_image_smooth_scale_set(0),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -55,10 +55,10 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
eo_do(o_images[i],
evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
}
FPS_STD(NAME);
}

@ -28,24 +28,22 @@ static void _setup(void)
o_images[i] = o;
if (i < (OBNUM / 2))
{
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
}
else
{
Evas_Coord x, y;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL));
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
if (o)
eo_do(o, evas_obj_position_set(x, y));
eo_do(o,
evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_position_set(x, y));
}
if (o)
eo_do(o, evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -72,8 +70,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y));
eo_do(o_images[i], evas_obj_position_set(x, y));
}
}
FPS_STD(NAME);

@ -31,24 +31,22 @@ static void _setup(void)
o_images[i] = o;
if (i < (OBNUM / 2))
{
if (o)
eo_do(o, evas_obj_image_file_set(PACKAGE_DATA_DIR"/data/logo.png", NULL));
eo_do(o, evas_obj_image_file_set(PACKAGE_DATA_DIR"/data/logo.png", NULL));
}
else
{
Evas_Coord x, y;
if (o)
eo_do(o, evas_obj_image_file_set(PACKAGE_DATA_DIR"/data/image.png", NULL));
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
if (o)
eo_do(o, evas_obj_position_set(x, y));
eo_do(o,
evas_obj_image_file_set(PACKAGE_DATA_DIR"/data/image.png", NULL),
evas_obj_position_set(x, y));
}
if (o)
eo_do(o, evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -75,8 +73,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y));
eo_do(o_images[i], evas_obj_position_set(x, y));
}
}
FPS_STD(NAME);

@ -31,24 +31,22 @@ static void _setup(void)
o_images[i] = o;
if (i < (OBNUM / 2))
{
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
}
else
{
Evas_Coord x, y;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL));
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
if (o)
eo_do(o, evas_obj_position_set(x, y));
eo_do(o,
evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_position_set(x, y));
}
if (o)
eo_do(o, evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -75,8 +73,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y));
eo_do(o_images[i], evas_obj_position_set(x, y));
}
}
FPS_STD(NAME);

@ -31,24 +31,22 @@ static void _setup(void)
o_images[i] = o;
if (i < (OBNUM / 2))
{
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
}
else
{
Evas_Coord x, y;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL));
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
if (o)
eo_do(o, evas_obj_position_set(x, y));
eo_do(o,
evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_position_set(x, y));
}
if (o)
eo_do(o, evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -75,8 +73,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y));
eo_do(o_images[i], evas_obj_position_set(x, y));
}
}
FPS_STD(NAME);

@ -28,24 +28,22 @@ static void _setup(void)
o_images[i] = o;
if (i & 0x1)
{
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
}
else
{
Evas_Coord x, y;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL));
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
if (o)
eo_do(o, evas_obj_position_set(x, y));
eo_do(o,
evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_position_set(x, y));
}
if (o)
eo_do(o, evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -72,8 +70,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y));
eo_do(o_images[i], evas_obj_position_set(x, y));
}
}
FPS_STD(NAME);

@ -31,24 +31,22 @@ static void _setup(void)
o_images[i] = o;
if (i & 0x1)
{
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
}
else
{
Evas_Coord x, y;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL));
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
if (o)
eo_do(o, evas_obj_position_set(x, y));
eo_do(o,
evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_position_set(x, y));
}
if (o)
eo_do(o, evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -75,8 +73,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y));
eo_do(o_images[i], evas_obj_position_set(x, y));
}
}
FPS_STD(NAME);

@ -31,24 +31,22 @@ static void _setup(void)
o_images[i] = o;
if (i & 0x1)
{
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
}
else
{
Evas_Coord x, y;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL));
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
if (o)
eo_do(o, evas_obj_position_set(x, y));
eo_do(o,
evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_position_set(x, y));
}
if (o)
eo_do(o, evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -75,8 +73,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y));
eo_do(o_images[i], evas_obj_position_set(x, y));
}
}
FPS_STD(NAME);

@ -31,24 +31,22 @@ static void _setup(void)
o_images[i] = o;
if (i & 0x1)
{
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
}
else
{
Evas_Coord x, y;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL));
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
if (o)
eo_do(o, evas_obj_position_set(x, y));
eo_do(o,
evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_position_set(x, y));
}
if (o)
eo_do(o, evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -75,8 +73,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y));
eo_do(o_images[i], evas_obj_position_set(x, y));
}
}
FPS_STD(NAME);

@ -28,24 +28,22 @@ static void _setup(void)
o_images[i] = o;
if (i > (OBNUM / 2))
{
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
}
else
{
Evas_Coord x, y;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL));
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
if (o)
eo_do(o, evas_obj_position_set(x, y));
eo_do(o,
evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_position_set(x, y));
}
if (o)
eo_do(o, evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -72,8 +70,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y));
eo_do(o_images[i], evas_obj_position_set(x, y));
}
}
FPS_STD(NAME);

@ -31,24 +31,22 @@ static void _setup(void)
o_images[i] = o;
if (i > (OBNUM / 2))
{
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
}
else
{
Evas_Coord x, y;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL));
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
if (o)
eo_do(o, evas_obj_position_set(x, y));
eo_do(o,
evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_position_set(x, y));
}
if (o)
eo_do(o, evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -75,8 +73,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y));
eo_do(o_images[i], evas_obj_position_set(x, y));
}
}
FPS_STD(NAME);

@ -31,24 +31,22 @@ static void _setup(void)
o_images[i] = o;
if (i > (OBNUM / 2))
{
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
}
else
{
Evas_Coord x, y;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL));
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
if (o)
eo_do(o, evas_obj_position_set(x, y));
eo_do(o,
evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_position_set(x, y));
}
if (o)
eo_do(o, evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -75,8 +73,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y));
eo_do(o_images[i], evas_obj_position_set(x, y));
}
}
FPS_STD(NAME);

@ -31,24 +31,22 @@ static void _setup(void)
o_images[i] = o;
if (i > (OBNUM / 2))
{
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL));
}
else
{
Evas_Coord x, y;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL));
x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
if (o)
eo_do(o, evas_obj_position_set(x, y));
eo_do(o,
evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_position_set(x, y));
}
if (o)
eo_do(o, evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -75,8 +73,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y));
eo_do(o_images[i], evas_obj_position_set(x, y));
}
}
FPS_STD(NAME);

@ -25,10 +25,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
evas_obj_image_smooth_scale_set(1),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_file_set(build_path("logo.png"), NULL),
evas_obj_image_smooth_scale_set(1),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -55,10 +55,10 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
eo_do(o_images[i],
evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
}
FPS_STD(NAME);
}

@ -25,10 +25,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
evas_obj_image_smooth_scale_set(1),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_file_set(build_path("logo.png"), NULL),
evas_obj_image_smooth_scale_set(1),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -55,10 +55,10 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
eo_do(o_images[i],
evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
}
FPS_STD(NAME);
}

@ -25,10 +25,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_image_smooth_scale_set(1),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_image_smooth_scale_set(1),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -55,10 +55,10 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
eo_do(o_images[i],
evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
}
FPS_STD(NAME);
}

@ -25,10 +25,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_image_smooth_scale_set(1),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_file_set(build_path("image.png"), NULL),
evas_obj_image_smooth_scale_set(1),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -55,10 +55,10 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
eo_do(o_images[i],
evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
}
FPS_STD(NAME);
}

@ -25,10 +25,10 @@ static void _setup(void)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (o)
eo_do(o, evas_obj_image_file_set(build_path("frame.png"), NULL),
evas_obj_image_border_set(8, 8, 8, 8),
evas_obj_visibility_set(EINA_TRUE));
eo_do(o,
evas_obj_image_file_set(build_path("frame.png"), NULL),
evas_obj_image_border_set(8, 8, 8, 8),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -55,10 +55,10 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
if (o_images[i])
eo_do(o_images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
eo_do(o_images[i],
evas_obj_position_set(x, y),
evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h));
}
FPS_STD(NAME);
}

@ -27,15 +27,15 @@ static void _setup(void)