From 8bb723a74600ae7ad328e2587548a216db880ee2 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 9 May 2011 08:11:06 +0000 Subject: Fix MNG content handler. svn path=/trunk/netsurf/; revision=12327 --- image/mng.c | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'image') diff --git a/image/mng.c b/image/mng.c index a6b0377c4..21e5d9d38 100644 --- a/image/mng.c +++ b/image/mng.c @@ -68,9 +68,6 @@ static bool nsmng_process_data(struct content *c, const char *data, static bool nsmng_convert(struct content *c); static void nsmng_destroy(struct content *c); static bool nsmng_redraw(struct content *c, int x, int y, - int width, int height, const struct rect *clip, - float scale, colour background_colour); -static bool nsmng_redraw_tiled(struct content *c, int x, int y, int width, int height, const struct rect *clip, float scale, colour background_colour, bool repeat_x, bool repeat_y); @@ -108,7 +105,6 @@ static const content_handler nsmng_content_handler = { NULL, NULL, nsmng_redraw, - nsmng_redraw_tiled, NULL, NULL, nsmng_clone, @@ -699,33 +695,6 @@ void nsmng_destroy(struct content *c) bool nsmng_redraw(struct content *c, int x, int y, - int width, int height, const struct rect *clip, - float scale, colour background_colour) -{ - nsmng_content *mng = (nsmng_content *) c; - bool ret; - - /* mark image as having been requested to display */ - mng->displayed = true; - - if ((c->bitmap) && (mng->opaque_test_pending)) { - bitmap_set_opaque(c->bitmap, bitmap_test_opaque(c->bitmap)); - mng->opaque_test_pending = false; - } - - ret = plot.bitmap(x, y, width, height, - c->bitmap, background_colour, BITMAPF_NONE); - - /* Check if we need to restart the animation - */ - if ((mng->waiting) && (option_animate_images)) - nsmng_animate(c); - - return ret; -} - - -bool nsmng_redraw_tiled(struct content *c, int x, int y, int width, int height, const struct rect *clip, float scale, colour background_colour, bool repeat_x, bool repeat_y) -- cgit v1.2.3