mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-16 14:34:53 +03:00
Image: BMP: 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
976f54bf48
commit
27a89439a2
@ -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/bmp.h"
|
||||
|
||||
@ -189,6 +190,9 @@ static bool nsbmp_redraw(struct content *c, struct content_redraw_data *data,
|
||||
return false;
|
||||
}
|
||||
|
||||
bitmap_format_to_client(bmp->bitmap, &(bitmap_fmt_t) {
|
||||
.layout = BITMAP_LAYOUT_R8G8B8A8,
|
||||
});
|
||||
guit->bitmap->modified(bmp->bitmap);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user