summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavio Sena <savio.sena@acm.org>2014-08-27 05:02:35 -0300
committerSavio Sena <savio@expertisesolutions.com.br>2014-09-16 19:35:19 -0300
commit6940737f1753b3a7c542ebca535b2aa656082bcb (patch)
tree6b7d71b3260325e363a9f1e1581ba556b03e139a
parentf1ce0c028f72f771b2cbded50d1ca00d8c8c1fe6 (diff)
Fixed evas image example.
-rw-r--r--src/bin/cxx/image_blend_border.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/cxx/image_blend_border.cc b/src/bin/cxx/image_blend_border.cc
index b7cddde..1be72c8 100644
--- a/src/bin/cxx/image_blend_border.cc
+++ b/src/bin/cxx/image_blend_border.cc
@@ -28,7 +28,7 @@ static void _setup()
28 { 28 {
29 evas::image o(efl::eo::parent = canvas); 29 evas::image o(efl::eo::parent = canvas);
30 images.push_back(o); 30 images.push_back(o);
31 o.file_set(::build_path("bar.png"), ""); // XXX 31 o.file_set(::build_path("bar.png"), "");
32 o.border_set(6, 6, 6, 6); 32 o.border_set(6, 6, 6, 6);
33 o.visibility_set(true); 33 o.visibility_set(true);
34 } 34 }
@@ -57,8 +57,9 @@ static void _loop(double t, int f)
57 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2); 57 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
58 y = (win_h / 2) - (h / 2); 58 y = (win_h / 2) - (h / 2);
59 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2); 59 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
60
60 (*it).position_set(x, y); 61 (*it).position_set(x, y);
61 (*it).size_set(w, h); 62 (*it).evas::object::size_set(w, h);
62 (*it).fill_set(0, 0, w, h); 63 (*it).fill_set(0, 0, w, h);
63 } 64 }
64 65