summaryrefslogtreecommitdiff
path: root/image/png.c
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2008-10-10 20:54:49 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2008-10-10 20:54:49 +0000
commite4fba7f577d44f3235b2c430191d96ddfc084827 (patch)
tree4bdd656be692939a55863d0c5c51c57e79c41224 /image/png.c
parenteaa744c0d2f36819438da298600749f0afb09591 (diff)
downloadnetsurf-e4fba7f577d44f3235b2c430191d96ddfc084827.tar.gz
netsurf-e4fba7f577d44f3235b2c430191d96ddfc084827.tar.bz2
Add missing calls to bitmap_modified(). This fixes using libpng in the BeOS port.
svn path=/trunk/netsurf/; revision=5532
Diffstat (limited to 'image/png.c')
-rw-r--r--image/png.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/image/png.c b/image/png.c
index c3ef9d8f8..3a41de6e1 100644
--- a/image/png.c
+++ b/image/png.c
@@ -243,11 +243,12 @@ bool nspng_convert(struct content *c, int width, int height)
snprintf(c->title, NSPNG_TITLE_LEN, messages_get("PNGTitle"),
c->width, c->height, c->source_size);
}
-
+
c->size += (c->width * c->height * 4) + NSPNG_TITLE_LEN;
-
+
+ c->bitmap = c->data.png.bitmap;
+ bitmap_modified(c->bitmap);
c->status = CONTENT_STATUS_DONE;
- c->bitmap = c->data.png.bitmap;
content_set_status(c, "");
return true;