From 7bf6a88c9c9ffe92602201b1073cb2daea73867f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 26 Mar 2022 14:34:15 +0000 Subject: Image: Sprite: 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/nssprite.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'content/handlers') diff --git a/content/handlers/image/nssprite.c b/content/handlers/image/nssprite.c index a6c2909f8..c9284f4dd 100644 --- a/content/handlers/image/nssprite.c +++ b/content/handlers/image/nssprite.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/nssprite.h" @@ -154,6 +155,9 @@ static bool nssprite_convert(struct content *c) free(title); } + bitmap_format_to_client(nssprite->bitmap, &(bitmap_fmt_t) { + .layout = BITMAP_LAYOUT_R8G8B8A8, + }); guit->bitmap->modified(nssprite->bitmap); content_set_ready(c); -- cgit v1.2.3