summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/FileIconProvider.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-18 13:47:29 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-18 21:11:30 +0100
commit2b866e3c9b0c6e230054edbbbe431cb1fbe3037e (patch)
tree41d4b7570daeae5d998b81023928dd63eab66544 /Userland/Libraries/LibGUI/FileIconProvider.cpp
parent750f1d580aa0358816ef1896b630e2ffe66ff232 (diff)
downloadserenity-2b866e3c9b0c6e230054edbbbe431cb1fbe3037e.zip
LibGfx: Remove ImageDecoderPlugin::bitmap() in favor of frame(index)
To encourage proper support for multi-frame images throughout the system, get rid of the single-frame convenience bitmap() API.
Diffstat (limited to 'Userland/Libraries/LibGUI/FileIconProvider.cpp')
-rw-r--r--Userland/Libraries/LibGUI/FileIconProvider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/FileIconProvider.cpp b/Userland/Libraries/LibGUI/FileIconProvider.cpp
index 066ba4463f..716e90fc27 100644
--- a/Userland/Libraries/LibGUI/FileIconProvider.cpp
+++ b/Userland/Libraries/LibGUI/FileIconProvider.cpp
@@ -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::PNGImageDecoderPlugin(reinterpret_cast<u8 const*>(section->raw_data()), section->size()).bitmap();
+ bitmap = Gfx::PNGImageDecoderPlugin(reinterpret_cast<u8 const*>(section->raw_data()), section->size()).frame(0).image;
}
if (!bitmap) {