summaryrefslogtreecommitdiff
path: root/riscos/content-handlers/artworks.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-10-24 18:22:45 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-10-24 18:22:45 +0100
commita526209e747642c9dbd8c0cbe9ec2b5247c35d5e (patch)
treeccbcffa6952976c8c3f0a887c0f9e450de99bf7d /riscos/content-handlers/artworks.c
parent719a36972b60165fc45b956703a4860855145548 (diff)
downloadnetsurf-a526209e747642c9dbd8c0cbe9ec2b5247c35d5e.tar.gz
netsurf-a526209e747642c9dbd8c0cbe9ec2b5247c35d5e.tar.bz2
More useful title info for images.
Diffstat (limited to 'riscos/content-handlers/artworks.c')
-rw-r--r--riscos/content-handlers/artworks.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/riscos/content-handlers/artworks.c b/riscos/content-handlers/artworks.c
index 66808d42a..af1a3773c 100644
--- a/riscos/content-handlers/artworks.c
+++ b/riscos/content-handlers/artworks.c
@@ -172,7 +172,7 @@ bool artworks_convert(struct content *c)
void *init_routine;
os_error *error;
int used = -1; /* slightly better with older OSLib versions */
- char title[100];
+ char title[512];
/* check whether AWViewer has been seen and we can therefore
locate the ArtWorks rendering modules */
@@ -263,8 +263,9 @@ bool artworks_convert(struct content *c)
c->width = (aw->x1 - aw->x0) / 512;
c->height = (aw->y1 - aw->y0) / 512;
- snprintf(title, sizeof(title), messages_get("ArtWorksTitle"),
- c->width, c->height, source_size);
+ snprintf(title, sizeof(title), messages_get("ArtWorksTitle"),
+ nsurl_access_leaf(llcache_handle_get_url(c->llcache)),
+ c->width, c->height);
content__set_title(c, title);
content_set_ready(c);
content_set_done(c);