diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-23 11:40:26 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-23 14:28:45 +0200 |
commit | 805123ab3d4a4afeacfd5e61b305ba1dcb056a1b (patch) | |
tree | 83a7f40c1fe7fa895395d68186a07b0a104f70f2 | |
parent | afb03dd24924be71a6b2c7c568ed2c24ff5d7818 (diff) | |
download | serenity-805123ab3d4a4afeacfd5e61b305ba1dcb056a1b.zip |
LibWeb: Give ImageResource::bitmap(frame_index) default frame_index = 0
-rw-r--r-- | Libraries/LibWeb/Loader/ImageLoader.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibWeb/Loader/ImageResource.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/Loader/ImageLoader.cpp b/Libraries/LibWeb/Loader/ImageLoader.cpp index 8e1218ae9b..040e711017 100644 --- a/Libraries/LibWeb/Loader/ImageLoader.cpp +++ b/Libraries/LibWeb/Loader/ImageLoader.cpp @@ -161,7 +161,7 @@ const Gfx::Bitmap* ImageLoader::bitmap() const { if (!resource()) return nullptr; - return resource()->bitmap(0); + return resource()->bitmap(); } const Gfx::ImageDecoder* ImageLoader::image_decoder() const diff --git a/Libraries/LibWeb/Loader/ImageResource.h b/Libraries/LibWeb/Loader/ImageResource.h index 1cf88a8f5b..62c1fc8de6 100644 --- a/Libraries/LibWeb/Loader/ImageResource.h +++ b/Libraries/LibWeb/Loader/ImageResource.h @@ -36,7 +36,7 @@ class ImageResource final : public Resource { public: virtual ~ImageResource() override; Gfx::ImageDecoder& ensure_decoder(); - const Gfx::Bitmap* bitmap(size_t frame_index) const; + const Gfx::Bitmap* bitmap(size_t frame_index = 0) const; bool should_decode_in_process() const; |