diff options
author | James Bursa <james@netsurf-browser.org> | 2003-05-10 11:15:49 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-05-10 11:15:49 +0000 |
commit | 27d93c182c7202c8d2a4ff5c9e05a85c3444cca6 (patch) | |
tree | ed95b0bf286b44e4cd62021490a38a807ff7e4ef /riscos/jpeg.c | |
parent | 0285c2984fc1913d583432716d6fff4f9f291994 (diff) | |
download | netsurf-27d93c182c7202c8d2a4ff5c9e05a85c3444cca6.tar.gz netsurf-27d93c182c7202c8d2a4ff5c9e05a85c3444cca6.tar.bz2 |
[project @ 2003-05-10 11:13:34 by bursa]
Partial PNG support.
svn path=/import/netsurf/; revision=129
Diffstat (limited to 'riscos/jpeg.c')
-rw-r--r-- | riscos/jpeg.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/riscos/jpeg.c b/riscos/jpeg.c index b329d3393..090f36cf4 100644 --- a/riscos/jpeg.c +++ b/riscos/jpeg.c @@ -1,5 +1,5 @@ /** - * $Id: jpeg.c,v 1.3 2003/03/03 22:40:39 bursa Exp $ + * $Id: jpeg.c,v 1.4 2003/05/10 11:13:34 bursa Exp $ * * This is just a temporary implementation using the JPEG renderer * available in some versions of RISC OS. @@ -61,3 +61,14 @@ void jpeg_destroy(struct content *c) xfree(c->data.jpeg.data); xfree(c->title); } + + +void jpeg_redraw(struct content *c, long x, long y, + unsigned long width, unsigned long height) +{ + /* TODO: scale to width, height */ + xjpeg_plot_scaled((jpeg_image *) c->data.jpeg.data, + x, y, 0, (int) c->data.jpeg.length, + jpeg_SCALE_DITHERED); +} + |