mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 19:55:10 +00:00
Lagom: Make BMP fuzzer look like the other image loader fuzzers
This commit is contained in:
parent
4f12efe191
commit
ec4c2f971b
3 changed files with 10 additions and 9 deletions
|
@ -186,6 +186,14 @@ RefPtr<Gfx::Bitmap> load_bmp(const StringView& path)
|
|||
return bitmap;
|
||||
}
|
||||
|
||||
RefPtr<Gfx::Bitmap> load_bmp_from_memory(const u8* data, size_t length)
|
||||
{
|
||||
auto bitmap = load_bmp_impl(data, length);
|
||||
if (bitmap)
|
||||
bitmap->set_mmap_name(String::format("Gfx::Bitmap [%dx%d] - Decoded BMP: <memory>", bitmap->width(), bitmap->height()));
|
||||
return bitmap;
|
||||
}
|
||||
|
||||
static const LogStream& operator<<(const LogStream& out, Endpoint<i32> ep)
|
||||
{
|
||||
return out << "(" << ep.x << ", " << ep.y << ", " << ep.z << ")";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue