diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-24 12:01:36 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-24 12:01:36 +0000 |
commit | b6238c6c5c82322b94943ffa446f1c1bf77fcea3 (patch) | |
tree | 154bc385ace4090b8ab2b3e948b2b85ff7590268 /content/handlers | |
parent | 1dd3c80d9beb45eda990bf46a704809dec2e4ba0 (diff) | |
download | netsurf-b6238c6c5c82322b94943ffa446f1c1bf77fcea3.tar.gz netsurf-b6238c6c5c82322b94943ffa446f1c1bf77fcea3.tar.bz2 |
Image: BMP: Update for new libnsbmp API.
Diffstat (limited to 'content/handlers')
-rw-r--r-- | content/handlers/image/bmp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/content/handlers/image/bmp.c b/content/handlers/image/bmp.c index a723022fe..6ef4aacdf 100644 --- a/content/handlers/image/bmp.c +++ b/content/handlers/image/bmp.c @@ -74,7 +74,6 @@ static nserror nsbmp_create_bmp_data(nsbmp_content *bmp) .bitmap_create = nsbmp_bitmap_create, .bitmap_destroy = guit->bitmap->destroy, .bitmap_get_buffer = guit->bitmap->get_buffer, - .bitmap_get_bpp = guit->bitmap->get_bpp }; bmp->bmp = calloc(sizeof(struct bmp_image), 1); @@ -151,8 +150,7 @@ static bool nsbmp_convert(struct content *c) /* Store our content width and description */ c->width = bmp->bmp->width; c->height = bmp->bmp->height; - swidth = bmp->bmp->bitmap_callbacks.bitmap_get_bpp(bmp->bmp->bitmap) * - bmp->bmp->width; + swidth = sizeof(uint32_t) * bmp->bmp->width; c->size += (swidth * bmp->bmp->height) + 16 + 44; /* set title text */ |