summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-03-26 14:35:35 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2022-03-27 09:58:21 +0100
commitdf6ff85305a87e1b6e6fc6271c5ae3366577cedb (patch)
tree8de9dd621e2203639c970fe066c64180d7a47cbc
parent052acc752cd31d907f134deebfeb584259e3f7ed (diff)
downloadnetsurf-df6ff85305a87e1b6e6fc6271c5ae3366577cedb.tar.gz
netsurf-df6ff85305a87e1b6e6fc6271c5ae3366577cedb.tar.bz2
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.
-rw-r--r--content/handlers/image/rsvg.c4
1 files changed, 4 insertions, 0 deletions
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);