From 1bbb499f88ef324a4526a74230851dd9a5325e19 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 26 Mar 2022 14:36:08 +0000 Subject: 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. --- content/handlers/image/webp.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3