summaryrefslogtreecommitdiff
path: root/riscos/gif.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/gif.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/gif.c')
-rw-r--r--riscos/gif.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/riscos/gif.c b/riscos/gif.c
index b295bc31d..f23c08d81 100644
--- a/riscos/gif.c
+++ b/riscos/gif.c
@@ -72,7 +72,7 @@ bool nsgif_convert(struct content *c, int iwidth, int iheight) {
*/
res = gif_initialise(gif);
switch (res) {
- case GIF_INSUFFICIENT_MEMORY:
+ case GIF_INSUFFICIENT_MEMORY:
msg_data.error = messages_get("NoMemory");
content_broadcast(c, CONTENT_MSG_ERROR, msg_data);
warn_user("NoMemory", 0);
@@ -101,6 +101,7 @@ bool nsgif_convert(struct content *c, int iwidth, int iheight) {
if (c->title) {
snprintf(c->title, 100, messages_get("GIFTitle"), c->width, c->height, c->source_size);
}
+ c->size += (gif->width * gif->height * 4) + 16 + 44 + 100;
/* Initialise the first frame so if we try to use the image data directly prior to
a plot we get some sensible data