Add missing calls to bitmap_modified(). This fixes using libpng in the BeOS port.

svn path=/trunk/netsurf/; revision=5532
This commit is contained in:
François Revel 2008-10-10 20:54:49 +00:00
parent eaa744c0d2
commit e4fba7f577
5 changed files with 10 additions and 3 deletions

View File

@ -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 */

View File

@ -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;

View File

@ -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;
}

View File

@ -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;

View File

@ -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, "");