From 428f271bcfbc0e525adbabded0245ba8e7455028 Mon Sep 17 00:00:00 2001 From: Savio Sena Date: Thu, 2 Oct 2014 18:08:30 -0300 Subject: expedite-cxx: Fix bug in image_crossfade.cc --- src/bin/cxx/image_crossfade.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') 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) /* loop - do things */ static void _loop(double t, int f) { - int a = f & 0x1f; - a = ((a << 3) | (a >> 2)) & 0xff; - (*images.back()).color_set(a, a, a, a); + if (!images.empty()) // XXX + { + int a = f & 0x1f; + a = ((a << 3) | (a >> 2)) & 0xff; + evas::image& img = images.back(); + img.evas::object::color_set(a, a, a, a); + } FPS_STD(NAME); } -- cgit v1.2.1