summaryrefslogtreecommitdiff
path: root/content/handlers
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-03-26 14:21:49 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2022-03-26 15:45:00 +0000
commit27a89439a2d7b5e42a749c7750f193ad9dbce607 (patch)
treeb4649c90782af404d30baedfe061c55c68458ca0 /content/handlers
parent976f54bf48338a8b96ab6fc329bc7b00e9ef5e08 (diff)
downloadnetsurf-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')
-rw-r--r--content/handlers/image/bmp.c4
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);
}