summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavio Sena <savio.sena@acm.org>2014-08-24 23:09:00 -0300
committerSavio Sena <savio.sena@acm.org>2014-08-24 23:09:00 -0300
commita4b7b0ba31f3672b0a9d5890d398eca9622d13a0 (patch)
tree4fa3d0fd418b79267d22af6ca5fbc0bad94c6e3a
parentbab92da5cf3b055aa7c7954d5c7919b327590f8c (diff)
Fixed global variables.
-rw-r--r--src/bin/cxx/image_blend_border.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/cxx/image_blend_border.cc b/src/bin/cxx/image_blend_border.cc
index 86e7490..fe11d8c 100644
--- a/src/bin/cxx/image_blend_border.cc
+++ b/src/bin/cxx/image_blend_border.cc
@@ -13,9 +13,10 @@
13#include "main.h" 13#include "main.h"
14 14
15#define EXPEDITE_CXX_TEST_IMPL 15#define EXPEDITE_CXX_TEST_IMPL
16#include "image_blend_border_cxx.h" 16#include "image_blend_border_cxx.c"
17 17
18efl::eina::list<evas::image> images; 18efl::eina::list<evas::image> images;
19evas::canvas *canvas;
19 20
20/* standard var */ 21/* standard var */
21static int done = 0; 22static int done = 0;
@@ -25,15 +26,16 @@ static void _setup()
25{ 26{
26 int i; 27 int i;
27 Evas_Object *o; 28 Evas_Object *o;
28 evas::canvas canvas(G_evas); 29 canvas = new evas::canvas(::eo_ref(G_evas));
29 30
30 for (i = 0; i < OBNUM; i++) 31 for (i = 0; i < OBNUM; i++)
31 { 32 {
32 evas::image o(efl::eo::parent = canvas); 33 evas::image o(efl::eo::parent = *canvas);
33 images.push_back(o); 34 images.push_back(o);
34 o.file_set(::build_path("bar.png"), ""); // XXX 35 o.file_set(::build_path("bar.png"), ""); // XXX
35 o.border_set(6, 6, 6, 6); 36 o.border_set(6, 6, 6, 6);
36 o.visibility_set(true); 37 o.visibility_set(true);
38 canvas->render();
37 } 39 }
38 done = 0; 40 done = 0;
39} 41}
@@ -42,6 +44,7 @@ static void _setup()
42static void _cleanup() 44static void _cleanup()
43{ 45{
44 images.clear(); 46 images.clear();
47 delete canvas;
45} 48}
46 49
47/* loop - do things */ 50/* loop - do things */
@@ -80,6 +83,3 @@ extern "C" void FNAME(void)
80 _setup(); 83 _setup();
81} 84}
82 85
83#undef FNAME
84#undef NAME
85#undef ICON