diff options
-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; |