diff options
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. */ |