Refactored around a bit.

This commit is contained in:
Savio Sena 2014-08-27 02:52:20 -03:00 committed by Savio Sena
parent 7e8108ad75
commit f1ce0c028f
1 changed files with 3 additions and 17 deletions

View File

@ -16,7 +16,6 @@
#include "image_blend_border_cxx.c"
efl::eina::list<evas::image> images;
evas::canvas *canvas;
/* standard var */
static int done = 0;
@ -24,26 +23,14 @@ static int done = 0;
/* setup */
static void _setup()
{
int i;
Evas_Object *o;
canvas = new evas::canvas(::eo_ref(G_evas));
for (i = 0; i < OBNUM; i++)
evas::canvas canvas(::eo_ref(G_evas));
for (int i = 0; i < OBNUM; i++)
{
evas::image o(efl::eo::parent = *canvas);
/// XXX
if(!::eo_composite_is(o._eo_ptr()))
{
std::cout << "<< >> " << __FUNCTION__ << "() +" << __LINE__
<< " XXX " << std::endl;
abort();
}
/// XXX
evas::image o(efl::eo::parent = canvas);
images.push_back(o);
o.file_set(::build_path("bar.png"), ""); // XXX
o.border_set(6, 6, 6, 6);
o.visibility_set(true);
canvas->render();
}
done = 0;
}
@ -52,7 +39,6 @@ static void _setup()
static void _cleanup()
{
images.clear();
delete canvas;
}
/* loop - do things */