summaryrefslogtreecommitdiff
path: root/src/bin/cxx/image_crossfade.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/cxx/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