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/png.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/png.c')
-rw-r--r-- | image/png.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/image/png.c b/image/png.c index 69ea92312..f3fbf35ea 100644 --- a/image/png.c +++ b/image/png.c @@ -344,24 +344,12 @@ static void nspng_destroy(struct content *c) static bool nspng_redraw(struct content *c, int x, int y, - int width, int height, const struct rect *clip, - float scale, colour background_colour) -{ - nspng_content *png_c = (nspng_content *) c; - - assert(png_c->bitmap != NULL); - - return plot.bitmap(x, y, width, height, png_c->bitmap, - background_colour, BITMAPF_NONE); -} - -static bool nspng_redraw_tiled(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) { nspng_content *png_c = (nspng_content *) c; - bitmap_flags_t flags = 0; + bitmap_flags_t flags = BITMAPF_NONE; assert(png_c->bitmap != NULL); @@ -434,7 +422,6 @@ static const content_handler nspng_content_handler = { NULL, NULL, nspng_redraw, - nspng_redraw_tiled, NULL, NULL, nspng_clone, |