summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-03-26 14:34:15 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2022-03-26 15:45:00 +0000
commit7bf6a88c9c9ffe92602201b1073cb2daea73867f (patch)
treea966cd6071a156b12ee53a3b7bd9ae5e5d5d765b
parent2f0fbbcaa0625fee09ee150f5d28512f19d6bedc (diff)
downloadnetsurf-7bf6a88c9c9ffe92602201b1073cb2daea73867f.tar.gz
netsurf-7bf6a88c9c9ffe92602201b1073cb2daea73867f.tar.bz2
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.
-rw-r--r--content/handlers/image/nssprite.c4
1 files changed, 4 insertions, 0 deletions
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);