diff options
author | James Bursa <james@netsurf-browser.org> | 2004-10-17 21:12:32 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-10-17 21:12:32 +0000 |
commit | 63a4269651952a83e0ccb71a8eebb682395e4697 (patch) | |
tree | b06240aa4db60fa233e3acfa5f6a83447a33dd6a /image/jpeg.c | |
parent | de33b16b87cafa6751f4ceb9aa4582d05aecf72e (diff) | |
download | netsurf-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/jpeg.c')
-rw-r--r-- | image/jpeg.c | 15 |
1 files changed, 15 insertions, 0 deletions
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" @@ -208,6 +209,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. */ |