summaryrefslogtreecommitdiff
path: root/image/mng.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-05-09 08:11:06 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-05-09 08:11:06 +0000
commit8bb723a74600ae7ad328e2587548a216db880ee2 (patch)
tree8d30a97a2dd7762ef13abd8bd60b83c666394a74 /image/mng.c
parent94bcee728be8755ef2d89557d217a769d5928f87 (diff)
downloadnetsurf-8bb723a74600ae7ad328e2587548a216db880ee2.tar.gz
netsurf-8bb723a74600ae7ad328e2587548a216db880ee2.tar.bz2
Fix MNG content handler.
svn path=/trunk/netsurf/; revision=12327
Diffstat (limited to 'image/mng.c')
-rw-r--r--image/mng.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/image/mng.c b/image/mng.c
index a6b0377c4..21e5d9d38 100644
--- a/image/mng.c
+++ b/image/mng.c
@@ -69,9 +69,6 @@ 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);
static nserror nsmng_clone(const struct content *old, struct content **newc);
@@ -108,7 +105,6 @@ static const content_handler nsmng_content_handler = {
NULL,
NULL,
nsmng_redraw,
- nsmng_redraw_tiled,
NULL,
NULL,
nsmng_clone,
@@ -700,33 +696,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)
{