mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 06:21:45 +03:00
Image: WebP: 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.
This commit is contained in:
parent
df6ff85305
commit
1bbb499f88
@ -38,6 +38,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"
|
||||
|
||||
@ -141,6 +142,9 @@ webp_cache_convert(struct content *c)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bitmap_format_to_client(bitmap, &(bitmap_fmt_t) {
|
||||
.layout = BITMAP_LAYOUT_R8G8B8A8,
|
||||
});
|
||||
guit->bitmap->modified(bitmap);
|
||||
|
||||
return bitmap;
|
||||
|
Loading…
Reference in New Issue
Block a user