mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibGfx: return clone from frame() instead of underlying framebuffer
This prevents frame() from modifying the contents of the same bitmap that was returned from previous calls to frame()
This commit is contained in:
parent
9494b03a02
commit
06eea59a65
Notes:
sideshowbarker
2024-07-19 02:43:03 +09:00
Author: https://github.com/peterdn
Commit: 06eea59a65
Pull-request: https://github.com/SerenityOS/serenity/pull/3465
Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 1 deletions
|
@ -709,7 +709,7 @@ ImageFrameDescriptor GIFImageDecoderPlugin::frame(size_t i)
|
|||
}
|
||||
|
||||
ImageFrameDescriptor frame {};
|
||||
frame.image = m_context->frame_buffer;
|
||||
frame.image = m_context->frame_buffer->clone();
|
||||
frame.duration = m_context->images.at(i).duration * 10;
|
||||
|
||||
if (frame.duration <= 10) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue