From 27d93c182c7202c8d2a4ff5c9e05a85c3444cca6 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sat, 10 May 2003 11:15:49 +0000 Subject: [project @ 2003-05-10 11:13:34 by bursa] Partial PNG support. svn path=/import/netsurf/; revision=129 --- riscos/jpeg.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'riscos/jpeg.c') 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); +} + -- cgit v1.2.3