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:
parent
4427da989f
commit
6c2ea4c4e9
2 changed files with 24 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue