forked from enlightenment/expedite
Fixed evas image example.
This commit is contained in:
parent
f1ce0c028f
commit
6940737f17
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue