diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-26 14:21:49 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-26 15:45:00 +0000 |
commit | 27a89439a2d7b5e42a749c7750f193ad9dbce607 (patch) | |
tree | b4649c90782af404d30baedfe061c55c68458ca0 /content/handlers/image | |
parent | 976f54bf48338a8b96ab6fc329bc7b00e9ef5e08 (diff) | |
download | netsurf-27a89439a2d7b5e42a749c7750f193ad9dbce607.tar.gz netsurf-27a89439a2d7b5e42a749c7750f193ad9dbce607.tar.bz2 |
Image: BMP: Call bitmap format conversion after decode.
Currently a no-op, because we decode to the default format
and no front end requests anything but the default format.
Diffstat (limited to 'content/handlers/image')
-rw-r--r-- | content/handlers/image/bmp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/content/handlers/image/bmp.c b/content/handlers/image/bmp.c index 5f9708be4..3fec2cc75 100644 --- a/content/handlers/image/bmp.c +++ b/content/handlers/image/bmp.c @@ -35,6 +35,7 @@ #include "content/content_protected.h" #include "content/content_factory.h" #include "desktop/gui_internal.h" +#include "desktop/bitmap.h" #include "image/bmp.h" @@ -189,6 +190,9 @@ static bool nsbmp_redraw(struct content *c, struct content_redraw_data *data, return false; } + bitmap_format_to_client(bmp->bitmap, &(bitmap_fmt_t) { + .layout = BITMAP_LAYOUT_R8G8B8A8, + }); guit->bitmap->modified(bmp->bitmap); } |