From d88a8399371dad124136b4e12b9e7b7156ad3c69 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 14 Oct 2012 20:03:18 +0100 Subject: Remove suspension of bmp/gif images. It's completely redundant with the convert on demand core image cache. --- image/gif.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'image/gif.c') diff --git a/image/gif.c b/image/gif.c index b3781f837..93316e03e 100644 --- a/image/gif.c +++ b/image/gif.c @@ -235,13 +235,6 @@ static void nsgif_animate(void *p) content_broadcast(&gif->base, CONTENT_MSG_REDRAW, data); } -static void nsgif_invalidate(void *bitmap, void *private_word) -{ - struct gif_animation *gif = (struct gif_animation *)private_word; - - gif->decoded_frame = -1; -} - static bool nsgif_convert(struct content *c) { nsgif_content *gif = (nsgif_content *) c; @@ -294,9 +287,6 @@ static bool nsgif_convert(struct content *c) gif->current_frame = 0; if (gif->gif->frame_count_partial > 1) schedule(gif->gif->frames[0].frame_delay, nsgif_animate, c); - else - bitmap_set_suspendable(gif->gif->frame_image, gif->gif, - nsgif_invalidate); /* Exit as a success */ content_set_ready(c); -- cgit v1.2.3