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.
This commit is contained in:
Michael Drake 2022-03-26 14:36:08 +00:00
parent df6ff85305
commit 1bbb499f88

View File

@ -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;