diff --git a/examples/vwebp.c b/examples/vwebp.c index 4327ab89..99c6cd21 100644 --- a/examples/vwebp.c +++ b/examples/vwebp.c @@ -243,6 +243,9 @@ static void HandleKey(unsigned char key, int pos_x, int pos_y) { } } else if (key == 'i') { kParams.print_info = 1 - kParams.print_info; + // TODO(skal): handle refresh of animation's last-frame too. It's quite + // more involved though (need to save the previous frame). + if (!kParams.has_animation) ClearPreviousFrame(); glutPostRedisplay(); } }