Fixed global variables.

This commit is contained in:
Savio Sena 2014-08-24 23:09:00 -03:00 committed by Savio Sena
parent 23aefd6470
commit a9145b99c8
1 changed files with 6 additions and 6 deletions

View File

@ -13,9 +13,10 @@
#include "main.h"
#define EXPEDITE_CXX_TEST_IMPL
#include "image_blend_border_cxx.h"
#include "image_blend_border_cxx.c"
efl::eina::list<evas::image> images;
evas::canvas *canvas;
/* standard var */
static int done = 0;
@ -25,15 +26,16 @@ static void _setup()
{
int i;
Evas_Object *o;
evas::canvas canvas(G_evas);
canvas = new evas::canvas(::eo_ref(G_evas));
for (i = 0; i < OBNUM; i++)
{
evas::image o(efl::eo::parent = canvas);
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;
}
@ -42,6 +44,7 @@ static void _setup()
static void _cleanup()
{
images.clear();
delete canvas;
}
/* loop - do things */
@ -80,6 +83,3 @@ extern "C" void FNAME(void)
_setup();
}
#undef FNAME
#undef NAME
#undef ICON