summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-03-26 14:36:08 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2022-03-27 09:58:21 +0100
commit1bbb499f88ef324a4526a74230851dd9a5325e19 (patch)
treeed2480eb8aabb983eda93969ad26728393f47c22
parentdf6ff85305a87e1b6e6fc6271c5ae3366577cedb (diff)
downloadnetsurf-1bbb499f88ef324a4526a74230851dd9a5325e19.tar.gz
netsurf-1bbb499f88ef324a4526a74230851dd9a5325e19.tar.bz2
Image: WebP: 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.
-rw-r--r--content/handlers/image/webp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/handlers/image/webp.c b/content/handlers/image/webp.c
index 59667a883..14f953283 100644
--- a/content/handlers/image/webp.c
+++ b/content/handlers/image/webp.c
@@ -38,6 +38,7 @@
#include "content/content_protected.h"
#include "content/content_factory.h"
#include "desktop/gui_internal.h"
+#include "desktop/bitmap.h"
#include "image/image_cache.h"
@@ -141,6 +142,9 @@ webp_cache_convert(struct content *c)
return NULL;
}
+ bitmap_format_to_client(bitmap, &(bitmap_fmt_t) {
+ .layout = BITMAP_LAYOUT_R8G8B8A8,
+ });
guit->bitmap->modified(bitmap);
return bitmap;