expedite-cxx: Fix bug in image_crossfade.cc

This commit is contained in:
Savio Sena 2014-10-02 18:08:30 -03:00
parent 93c095a3fb
commit 428f271bcf
1 changed files with 7 additions and 3 deletions

View File

@ -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);
}