summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavio Sena <savio@expertisesolutions.com.br>2014-10-02 18:08:30 -0300
committerSavio Sena <savio@expertisesolutions.com.br>2014-10-02 18:08:30 -0300
commit428f271bcfbc0e525adbabded0245ba8e7455028 (patch)
tree3e7ba20b5daa5127ea01d462ebfc43694e7e0954
parent93c095a3fb69183954136223cd58456c84cf3302 (diff)
expedite-cxx: Fix bug in image_crossfade.cc
-rw-r--r--src/bin/cxx/image_crossfade.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/bin/cxx/image_crossfade.cc b/src/bin/cxx/image_crossfade.cc
index 9b847f8..e5a0136 100644
--- a/src/bin/cxx/image_crossfade.cc
+++ b/src/bin/cxx/image_crossfade.cc
@@ -54,9 +54,13 @@ static void _cleanup(void)
54/* loop - do things */ 54/* loop - do things */
55static void _loop(double t, int f) 55static void _loop(double t, int f)
56{ 56{
57 int a = f & 0x1f; 57 if (!images.empty()) // XXX
58 a = ((a << 3) | (a >> 2)) & 0xff; 58 {
59 (*images.back()).color_set(a, a, a, a); 59 int a = f & 0x1f;
60 a = ((a << 3) | (a >> 2)) & 0xff;
61 evas::image& img = images.back();
62 img.evas::object::color_set(a, a, a, a);
63 }
60 FPS_STD(NAME); 64 FPS_STD(NAME);
61} 65}
62 66