cleanup, remove warning, useless if and tab .

This commit is contained in:
Cedric BAIL 2014-08-22 00:48:19 +02:00
parent 281bbd90fd
commit 3ef31223f6
92 changed files with 801 additions and 890 deletions

View File

@ -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();
}
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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("image.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("image.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);
}

View File

@ -27,14 +27,14 @@ 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_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160));
eo_do(o,
evas_obj_image_file_set(build_path("image.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_color_set(a, a, a, a),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
@ -59,8 +59,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);