summaryrefslogtreecommitdiff
path: root/riscos/png.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-06-24 16:54:28 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-06-24 16:54:28 +0000
commit86e56dc173b4d7a539ef7c87005dcd5276b336a7 (patch)
treea8e8ac46e1989436998765c4b2fafbc89927420c /riscos/png.c
parent913498394ccac510785e8835ee951e1f46a2c099 (diff)
downloadnetsurf-86e56dc173b4d7a539ef7c87005dcd5276b336a7.tar.gz
netsurf-86e56dc173b4d7a539ef7c87005dcd5276b336a7.tar.bz2
[project @ 2004-06-24 16:54:28 by jmb]
Update content->size to more accurate value. svn path=/import/netsurf/; revision=1002
Diffstat (limited to 'riscos/png.c')
-rw-r--r--riscos/png.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/riscos/png.c b/riscos/png.c
index 440a17f34..1cc2bf622 100644
--- a/riscos/png.c
+++ b/riscos/png.c
@@ -253,6 +253,7 @@ bool nspng_convert(struct content *c, int width, int height)
if (c->title)
snprintf(c->title, 100, messages_get("PNGTitle"),
c->width, c->height, c->source_size);
+ c->size += (c->width * c->height * 4) + 16 + 44 + 100;
c->status = CONTENT_STATUS_DONE;
return true;
}