diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-26 14:33:16 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-26 15:45:00 +0000 |
commit | 2f0fbbcaa0625fee09ee150f5d28512f19d6bedc (patch) | |
tree | 23db750f769e5bd1e85e7a276139e9b774f3d8fe /content/handlers/image | |
parent | c7dce05437d572d6417702c07221b856c88c9d7d (diff) | |
download | netsurf-2f0fbbcaa0625fee09ee150f5d28512f19d6bedc.tar.gz netsurf-2f0fbbcaa0625fee09ee150f5d28512f19d6bedc.tar.bz2 |
Image: JPEG: 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.
Diffstat (limited to 'content/handlers/image')
-rw-r--r-- | content/handlers/image/jpeg.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/content/handlers/image/jpeg.c b/content/handlers/image/jpeg.c index 9daf06b3f..940f2394e 100644 --- a/content/handlers/image/jpeg.c +++ b/content/handlers/image/jpeg.c @@ -37,6 +37,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" @@ -296,6 +297,10 @@ jpeg_cache_convert(struct content *c) #endif } } while (cinfo.output_scanline != cinfo.output_height); + + bitmap_format_to_client(bitmap, &(bitmap_fmt_t) { + .layout = BITMAP_LAYOUT_R8G8B8A8, + }); guit->bitmap->modified(bitmap); jpeg_finish_decompress(&cinfo); |