summaryrefslogtreecommitdiff
path: root/image
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
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')
-rw-r--r--image/bmp.c1
-rw-r--r--image/ico.c2
-rw-r--r--image/nssprite.c2
-rw-r--r--image/png.c7
-rw-r--r--image/rsvg.c1
5 files changed, 10 insertions, 3 deletions
diff --git a/image/bmp.c b/image/bmp.c
index 408eb5861..ac2fbf2b6 100644
--- a/image/bmp.c
+++ b/image/bmp.c
@@ -103,6 +103,7 @@ bool nsbmp_convert(struct content *c, int iwidth, int iheight)
/* exit as a success */
c->bitmap = bmp->bitmap;
+ bitmap_modified(c->bitmap);
c->status = CONTENT_STATUS_DONE;
/* Done: update status bar */
diff --git a/image/ico.c b/image/ico.c
index fba45a942..28cfcf76e 100644
--- a/image/ico.c
+++ b/image/ico.c
@@ -92,7 +92,9 @@ bool nsico_convert(struct content *c, int iwidth, int iheight)
bmp = ico_find(c->data.ico.ico, 255, 255);
assert(bmp);
c->bitmap = bmp->bitmap;
+ bitmap_modified(c->bitmap);
c->status = CONTENT_STATUS_DONE;
+
/* Done: update status bar */
content_set_status(c, "");
return true;
diff --git a/image/nssprite.c b/image/nssprite.c
index e361a6600..1603ca74e 100644
--- a/image/nssprite.c
+++ b/image/nssprite.c
@@ -105,7 +105,9 @@ bool nssprite_convert(struct content *c, int width, int height)
c->width = sprite->width;
c->height = sprite->height;
+ bitmap_modified(c->bitmap);
c->status = CONTENT_STATUS_DONE;
+
return true;
}
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;
diff --git a/image/rsvg.c b/image/rsvg.c
index fe9ce648e..9b408c4e5 100644
--- a/image/rsvg.c
+++ b/image/rsvg.c
@@ -171,6 +171,7 @@ bool rsvg_convert(struct content *c, int iwidth, int iheight)
bitmap_get_rowstride(d->bitmap));
c->bitmap = d->bitmap;
+ bitmap_modified(c->bitmap);
c->status = CONTENT_STATUS_DONE;
/* Done: update status bar */
content_set_status(c, "");