Fixed evas image example.

This commit is contained in:
Savio Sena 2014-08-27 05:02:35 -03:00
parent c7cabe8da6
commit a35c3791ad
1 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,7 @@ static void _setup()
{
evas::image o(efl::eo::parent = canvas);
images.push_back(o);
o.file_set(::build_path("bar.png"), ""); // XXX
o.file_set(::build_path("bar.png"), "");
o.border_set(6, 6, 6, 6);
o.visibility_set(true);
}
@ -57,8 +57,9 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
(*it).position_set(x, y);
(*it).size_set(w, h);
(*it).evas::object::size_set(w, h);
(*it).fill_set(0, 0, w, h);
}