summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavio Sena <savio.sena@acm.org>2014-08-27 02:52:20 -0300
committerSavio Sena <savio@expertisesolutions.com.br>2014-09-16 19:35:18 -0300
commitf1ce0c028f72f771b2cbded50d1ca00d8c8c1fe6 (patch)
tree49431dfcc3cae355c2ec96d57e1db17ef790d3b4
parent7e8108ad75788549f0b6ed9eab7baa9bd5b7d214 (diff)
Refactored around a bit.
-rw-r--r--src/bin/cxx/image_blend_border.cc20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/bin/cxx/image_blend_border.cc b/src/bin/cxx/image_blend_border.cc
index a9f63b4..b7cddde 100644
--- a/src/bin/cxx/image_blend_border.cc
+++ b/src/bin/cxx/image_blend_border.cc
@@ -16,7 +16,6 @@
16#include "image_blend_border_cxx.c" 16#include "image_blend_border_cxx.c"
17 17
18efl::eina::list<evas::image> images; 18efl::eina::list<evas::image> images;
19evas::canvas *canvas;
20 19
21/* standard var */ 20/* standard var */
22static int done = 0; 21static int done = 0;
@@ -24,26 +23,14 @@ static int done = 0;
24/* setup */ 23/* setup */
25static void _setup() 24static void _setup()
26{ 25{
27 int i; 26 evas::canvas canvas(::eo_ref(G_evas));
28 Evas_Object *o; 27 for (int i = 0; i < OBNUM; i++)
29 canvas = new evas::canvas(::eo_ref(G_evas));
30
31 for (i = 0; i < OBNUM; i++)
32 { 28 {
33 evas::image o(efl::eo::parent = *canvas); 29 evas::image o(efl::eo::parent = canvas);
34 /// XXX
35 if(!::eo_composite_is(o._eo_ptr()))
36 {
37 std::cout << "<< >> " << __FUNCTION__ << "() +" << __LINE__
38 << " XXX " << std::endl;
39 abort();
40 }
41 /// XXX
42 images.push_back(o); 30 images.push_back(o);
43 o.file_set(::build_path("bar.png"), ""); // XXX 31 o.file_set(::build_path("bar.png"), ""); // XXX
44 o.border_set(6, 6, 6, 6); 32 o.border_set(6, 6, 6, 6);
45 o.visibility_set(true); 33 o.visibility_set(true);
46 canvas->render();
47 } 34 }
48 done = 0; 35 done = 0;
49} 36}
@@ -52,7 +39,6 @@ static void _setup()
52static void _cleanup() 39static void _cleanup()
53{ 40{
54 images.clear(); 41 images.clear();
55 delete canvas;
56} 42}
57 43
58/* loop - do things */ 44/* loop - do things */