summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavio Sena <savio.sena@acm.org>2014-08-27 05:02:35 -0300
committerSavio Sena <savio.sena@acm.org>2014-08-27 05:02:35 -0300
commita35c3791add7e967c9f7860eaf04ada675d244f2 (patch)
tree0e134d95e37e741c5b4d23578d6c1802ca64cfe7
parentc7cabe8da6ade324e005d208de7cbc0caa883741 (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