From 63a4269651952a83e0ccb71a8eebb682395e4697 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 17 Oct 2004 21:12:32 +0000 Subject: [project @ 2004-10-17 21:12:32 by bursa] Replace bitmap_redraw() with plot.bitmap(). svn path=/import/netsurf/; revision=1316 --- image/mng.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'image/mng.c') diff --git a/image/mng.c b/image/mng.c index d1b9c9cfc..008e8363f 100644 --- a/image/mng.c +++ b/image/mng.c @@ -19,6 +19,7 @@ #include "netsurf/utils/config.h" #include "netsurf/content/content.h" #include "netsurf/desktop/browser.h" +#include "netsurf/desktop/plotters.h" #include "netsurf/image/bitmap.h" #include "netsurf/image/mng.h" #include "netsurf/utils/log.h" @@ -258,7 +259,7 @@ bool nsmng_convert(struct content *c, int width, int height) { LOG(("Unable to start display (%i)", status)); return nsmng_broadcast_error(c); } - + /* Optimise the plotting of JNG/PNGs */ if ((c->type == CONTENT_PNG) || (c->type == CONTENT_JNG)) { @@ -381,9 +382,8 @@ bool nsmng_redraw(struct content *c, int x, int y, { bool ret; - ret = bitmap_redraw(c, x, y, width, height, - clip_x0, clip_y0, clip_x1, clip_y1, - scale, background_colour); + ret = plot.bitmap(x, y, width, height, + c->bitmap, background_colour); /* Check if we need to restart the animation */ -- cgit v1.2.3