summaryrefslogtreecommitdiff
path: root/image/mng.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-10-17 21:12:32 +0000
committerJames Bursa <james@netsurf-browser.org>2004-10-17 21:12:32 +0000
commit63a4269651952a83e0ccb71a8eebb682395e4697 (patch)
treeb06240aa4db60fa233e3acfa5f6a83447a33dd6a /image/mng.c
parentde33b16b87cafa6751f4ceb9aa4582d05aecf72e (diff)
downloadnetsurf-63a4269651952a83e0ccb71a8eebb682395e4697.tar.gz
netsurf-63a4269651952a83e0ccb71a8eebb682395e4697.tar.bz2
[project @ 2004-10-17 21:12:32 by bursa]
Replace bitmap_redraw() with plot.bitmap(). svn path=/import/netsurf/; revision=1316
Diffstat (limited to 'image/mng.c')
-rw-r--r--image/mng.c8
1 files changed, 4 insertions, 4 deletions
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
*/