mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
LibGUI: Use PNGImageDecoderPlugin for ELF icon extraction
Getting rid of all the remaining calls to load_png_from_memory() and the related wrappers for each decoder.
This commit is contained in:
parent
b189c88ec2
commit
62ce7653cb
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ Icon FileIconProvider::icon_for_executable(const String& path)
|
|||
if (!section.has_value()) {
|
||||
bitmap = s_executable_icon.bitmap_for_size(icon_section.image_size);
|
||||
} else {
|
||||
bitmap = Gfx::load_png_from_memory(reinterpret_cast<u8 const*>(section->raw_data()), section->size());
|
||||
bitmap = Gfx::PNGImageDecoderPlugin(reinterpret_cast<u8 const*>(section->raw_data()), section->size()).bitmap();
|
||||
}
|
||||
|
||||
if (!bitmap) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue