summaryrefslogtreecommitdiff
path: root/riscos/jpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/jpeg.c')
-rw-r--r--riscos/jpeg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/riscos/jpeg.c b/riscos/jpeg.c
index f8ef1c7d0..b329d3393 100644
--- a/riscos/jpeg.c
+++ b/riscos/jpeg.c
@@ -1,5 +1,5 @@
/**
- * $Id: jpeg.c,v 1.2 2003/02/28 11:49:13 bursa Exp $
+ * $Id: jpeg.c,v 1.3 2003/03/03 22:40:39 bursa Exp $
*
* This is just a temporary implementation using the JPEG renderer
* available in some versions of RISC OS.
@@ -40,6 +40,8 @@ int jpeg_convert(struct content *c, unsigned int width, unsigned int height)
return 1;
c->width = w;
c->height = h;
+ c->title = xcalloc(100, 1);
+ sprintf(c->title, "JPEG image (%ux%u, %lu bytes)", w, h, c->data.jpeg.length);
return 0;
}
@@ -57,4 +59,5 @@ void jpeg_reformat(struct content *c, unsigned int width, unsigned int height)
void jpeg_destroy(struct content *c)
{
xfree(c->data.jpeg.data);
+ xfree(c->title);
}