summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/main.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 7bed636..d6b66f2 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -1,12 +1,5 @@
1#include "main.h" 1#include "main.h"
2 2
3typedef struct _Evas_Object_Image_Preload Evas_Object_Image_Preload;
4struct _Evas_Object_Image_Preload
5{
6 Evas_Object *obj;
7 const char *name;
8};
9
10Evas *evas = NULL; 3Evas *evas = NULL;
11int win_w = 720, win_h = 420; 4int win_w = 720, win_h = 420;
12int loops = LOOPS; 5int loops = LOOPS;
@@ -1048,17 +1041,6 @@ static const unsigned short r[65536] =
10487968, 2599, 8735, 29790, 6290, 30746, 32702, 4455, 16084, 13228, 29890, 28634, 5614, 3659, 22541, 13680, 13544, 6990, 4032, 29236, 23846, 12513, 28685, 12501, 1470, 25253, 25536, 8868, 10340, 1045, 27154, 18308, 3644, 3122, 15330, 9934, 1100, 15264, 14389, 17184, 28493, 11512, 13050, 1339, 15171, 2823, 15020, 28715, 9814, 19052, 25184, 892, 31565, 21101, 13394, 267, 13586, 6162, 9135, 23926, 7207, 3522, 9466, 10852 10417968, 2599, 8735, 29790, 6290, 30746, 32702, 4455, 16084, 13228, 29890, 28634, 5614, 3659, 22541, 13680, 13544, 6990, 4032, 29236, 23846, 12513, 28685, 12501, 1470, 25253, 25536, 8868, 10340, 1045, 27154, 18308, 3644, 3122, 15330, 9934, 1100, 15264, 14389, 17184, 28493, 11512, 13050, 1339, 15171, 2823, 15020, 28715, 9814, 19052, 25184, 892, 31565, 21101, 13394, 267, 13586, 6162, 9135, 23926, 7207, 3522, 9466, 10852
1049}; 1042};
1050 1043
1051static Evas_Object_Image_Preload preloading[] = {
1052 { NULL, "logo.png" },
1053 { NULL, "image.png" },
1054 { NULL, "bar.png" },
1055 { NULL, "pan.png" },
1056 { NULL, "frame.png" },
1057 { NULL, "im1.png" },
1058 { NULL, "im2.png" },
1059 { NULL, "tp.png" }
1060};
1061
1062void 1044void
1063srnd(void) 1045srnd(void)
1064{ 1046{
@@ -1383,14 +1365,6 @@ main(int argc, char **argv)
1383 1365
1384 evas_font_hinting_set(evas, EVAS_FONT_HINTING_AUTO); 1366 evas_font_hinting_set(evas, EVAS_FONT_HINTING_AUTO);
1385 1367
1386 /* Preloading every image. */
1387 for (i = 0; i < sizeof (preloading) / sizeof (Evas_Object_Image_Preload); ++i)
1388 {
1389 preloading[i].obj = evas_object_image_add(evas);
1390 evas_object_image_file_set(preloading[i].obj, build_path(preloading[i].name), NULL);
1391 evas_object_image_preload(preloading[i].obj, 0);
1392 }
1393
1394 while (_engine_go()) 1368 while (_engine_go())
1395 { 1369 {
1396 engine_loop(); 1370 engine_loop();
@@ -1398,13 +1372,6 @@ main(int argc, char **argv)
1398 evas_render(evas); 1372 evas_render(evas);
1399 } 1373 }
1400 1374
1401 /* Delete object, just to be clean. */
1402 for (i = 0; i < sizeof (preloading) / sizeof (Evas_Object_Image_Preload); ++i)
1403 {
1404 evas_object_del(preloading[i].obj);
1405 preloading[i].obj = NULL;
1406 }
1407
1408 evas_free(evas); 1375 evas_free(evas);
1409 1376
1410 evas_shutdown(); 1377 evas_shutdown();