1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

Clipboard: Remove-unused bpp metadata

It's just more attack surface, and can be deduced from the format anyway.
This commit is contained in:
Ben Wiederhake 2020-12-05 20:24:27 +01:00 committed by Andreas Kling
parent 4427da989f
commit 6c2ea4c4e9
2 changed files with 24 additions and 2 deletions

View file

@ -161,7 +161,6 @@ void Clipboard::set_bitmap(const Gfx::Bitmap& bitmap)
metadata.set("height", String::number(bitmap.height()));
metadata.set("format", String::number((int)bitmap.format()));
metadata.set("pitch", String::number(bitmap.pitch()));
metadata.set("bpp", String::number(bitmap.bpp()));
set_data({ bitmap.scanline(0), bitmap.size_in_bytes() }, "image/x-serenityos", metadata);
}