mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
LibWeb: Give ImageResource::bitmap(frame_index) default frame_index = 0
This commit is contained in:
parent
afb03dd249
commit
805123ab3d
2 changed files with 2 additions and 2 deletions
|
@ -161,7 +161,7 @@ const Gfx::Bitmap* ImageLoader::bitmap() const
|
||||||
{
|
{
|
||||||
if (!resource())
|
if (!resource())
|
||||||
return nullptr;
|
return nullptr;
|
||||||
return resource()->bitmap(0);
|
return resource()->bitmap();
|
||||||
}
|
}
|
||||||
|
|
||||||
const Gfx::ImageDecoder* ImageLoader::image_decoder() const
|
const Gfx::ImageDecoder* ImageLoader::image_decoder() const
|
||||||
|
|
|
@ -36,7 +36,7 @@ class ImageResource final : public Resource {
|
||||||
public:
|
public:
|
||||||
virtual ~ImageResource() override;
|
virtual ~ImageResource() override;
|
||||||
Gfx::ImageDecoder& ensure_decoder();
|
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;
|
bool should_decode_in_process() const;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue