mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
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:
parent
eaa744c0d2
commit
e4fba7f577
@ -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 */
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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, "");
|
||||
|
Loading…
Reference in New Issue
Block a user