diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-10-17 21:37:01 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-10-17 21:37:01 +0000 |
commit | dcfd2dffe2a012aff1a2eefbd624c342a5be35d9 (patch) | |
tree | 76d1448e0b14625dd3bafa1e6153be07b213e5cc | |
parent | a3cd08929ae24ab9acd097584d050bdf9e78cb2b (diff) | |
download | netsurf-dcfd2dffe2a012aff1a2eefbd624c342a5be35d9.tar.gz netsurf-dcfd2dffe2a012aff1a2eefbd624c342a5be35d9.tar.bz2 |
[project @ 2004-10-17 21:37:01 by jmb]
Fixup to use plotters.
Someone please fix the png bug. ta ;)
svn path=/import/netsurf/; revision=1321
-rw-r--r-- | image/png.c | 10 | ||||
-rw-r--r-- | image/png.h | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/image/png.c b/image/png.c index 9fd79f2fd..ae7773149 100644 --- a/image/png.c +++ b/image/png.c @@ -13,6 +13,7 @@ #include "libpng/png.h" #include "netsurf/utils/config.h" #include "netsurf/content/content.h" +#include "netsurf/desktop/plotters.h" #include "netsurf/image/bitmap.h" #include "netsurf/image/png.h" #include "netsurf/utils/log.h" @@ -243,4 +244,13 @@ void nspng_destroy(struct content *c) if (c->bitmap) bitmap_destroy(c->bitmap); } + +bool nspng_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); +} #endif diff --git a/image/png.h b/image/png.h index 5cf0eb3c1..08232267a 100644 --- a/image/png.h +++ b/image/png.h @@ -23,5 +23,9 @@ bool nspng_create(struct content *c, const char *params[]); bool nspng_process_data(struct content *c, char *data, unsigned int size); bool nspng_convert(struct content *c, int width, int height); void nspng_destroy(struct content *c); +bool nspng_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); #endif |