From df6ff85305a87e1b6e6fc6271c5ae3366577cedb Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 26 Mar 2022 14:35:35 +0000 Subject: Image: RSVG: 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/rsvg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/handlers/image/rsvg.c b/content/handlers/image/rsvg.c index 46179985a..90e4c1288 100644 --- a/content/handlers/image/rsvg.c +++ b/content/handlers/image/rsvg.c @@ -51,6 +51,7 @@ #include "content/content_protected.h" #include "content/content_factory.h" #include "desktop/gui_internal.h" +#include "desktop/bitmap.h" #include "image/rsvg.h" @@ -217,6 +218,9 @@ static bool rsvg_convert(struct content *c) c->width, c->height, guit->bitmap->get_rowstride(d->bitmap)); + bitmap_format_to_client(d->bitmap, &(bitmap_fmt_t) { + .layout = BITMAP_LAYOUT_R8G8B8A8, + }); guit->bitmap->modified(d->bitmap); content_set_ready(c); content_set_done(c); -- cgit v1.2.3