summaryrefslogtreecommitdiff
path: root/riscos/jpeg.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-05-10 11:15:49 +0000
committerJames Bursa <james@netsurf-browser.org>2003-05-10 11:15:49 +0000
commit27d93c182c7202c8d2a4ff5c9e05a85c3444cca6 (patch)
treeed95b0bf286b44e4cd62021490a38a807ff7e4ef /riscos/jpeg.c
parent0285c2984fc1913d583432716d6fff4f9f291994 (diff)
downloadnetsurf-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.c13
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);
+}
+