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/jpeg.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'image/jpeg.c') diff --git a/image/jpeg.c b/image/jpeg.c index f607ebb14..7f57d62b2 100644 --- a/image/jpeg.c +++ b/image/jpeg.c @@ -21,6 +21,7 @@ #include "libjpeg/jpeglib.h" #include "netsurf/utils/config.h" #include "netsurf/content/content.h" +#include "netsurf/desktop/plotters.h" #include "netsurf/image/bitmap.h" #include "netsurf/image/jpeg.h" #include "netsurf/utils/log.h" @@ -207,6 +208,20 @@ void nsjpeg_term_source(j_decompress_ptr cinfo) } +/** + * Redraw a CONTENT_JPEG. + */ + +bool nsjpeg_redraw(struct content *c, int x, int y, + int width, int height, + int clip_x0, int clip_y0, int clip_x1, int clip_y1, + float scale, unsigned long background_colour) +{ + return plot.bitmap(x, y, width, height, + c->bitmap, background_colour); +} + + /** * Destroy a CONTENT_JPEG and free all resources it owns. */ -- cgit v1.2.3