mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibGfx: Allow passing an ideal size to image decoders
The ideal size is the size the user will display the image. Raster formats should ignore this parameter, but vector formats can use it to generate a bitmap of the ideal size.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
ff47223301
commit
e7cddda7e1
@@ -1548,7 +1548,7 @@ size_t BMPImageDecoderPlugin::first_animated_frame_index()
|
||||
return 0;
|
||||
}
|
||||
|
||||
ErrorOr<ImageFrameDescriptor> BMPImageDecoderPlugin::frame(size_t index)
|
||||
ErrorOr<ImageFrameDescriptor> BMPImageDecoderPlugin::frame(size_t index, Optional<IntSize>)
|
||||
{
|
||||
if (index > 0)
|
||||
return Error::from_string_literal("BMPImageDecoderPlugin: Invalid frame index");
|
||||
|
||||
Reference in New Issue
Block a user