diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-05-08 19:54:35 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-05-08 19:54:35 +0000 |
commit | 8be1e85e919d5b6c12979dca0d57f7cd67d2cb79 (patch) | |
tree | c0887e7c26229de5f543b03eb9bdb8d5561e9787 /image/jpeg.c | |
parent | 8f6c343309dd32c3193622961df5e2f785915665 (diff) | |
download | netsurf-8be1e85e919d5b6c12979dca0d57f7cd67d2cb79.tar.gz netsurf-8be1e85e919d5b6c12979dca0d57f7cd67d2cb79.tar.bz2 |
consolidate content redraw
more cleanups ready for image content refactor
svn path=/trunk/netsurf/; revision=12317
Diffstat (limited to 'image/jpeg.c')
-rw-r--r-- | image/jpeg.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/image/jpeg.c b/image/jpeg.c index 9709bc0f7..1d0e16edd 100644 --- a/image/jpeg.c +++ b/image/jpeg.c @@ -275,21 +275,9 @@ static void nsjpeg_destroy(struct content *c) /** - * Redraw a CONTENT_JPEG. - */ -static bool nsjpeg_redraw(struct content *c, int x, int y, - int width, int height, const struct rect *clip, - float scale, colour background_colour) -{ - return plot.bitmap(x, y, width, height, - c->bitmap, background_colour, BITMAPF_NONE); -} - - -/** * Redraw a CONTENT_JPEG with appropriate tiling. */ -static bool nsjpeg_redraw_tiled(struct content *c, int x, int y, +static bool nsjpeg_redraw(struct content *c, int x, int y, int width, int height, const struct rect *clip, float scale, colour background_colour, bool repeat_x, bool repeat_y) @@ -356,7 +344,6 @@ static const content_handler nsjpeg_content_handler = { NULL, NULL, nsjpeg_redraw, - nsjpeg_redraw_tiled, NULL, NULL, nsjpeg_clone, |