mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibGUI: Copy alpha channel as-is when keeping backing bitmaps in sync
This commit is contained in:
parent
3084291625
commit
2677e24a99
Notes:
sideshowbarker
2024-07-18 22:01:36 +09:00
Author: https://github.com/tomuta
Commit: 2677e24a99
Pull-request: https://github.com/SerenityOS/serenity/pull/5467
1 changed files with 1 additions and 1 deletions
|
@ -751,7 +751,7 @@ void Window::flip(const Vector<Gfx::IntRect, 32>& dirty_rects)
|
|||
// Copy whatever was painted from the front to the back.
|
||||
Painter painter(m_back_store->bitmap());
|
||||
for (auto& dirty_rect : dirty_rects)
|
||||
painter.blit(dirty_rect.location(), m_front_store->bitmap(), dirty_rect);
|
||||
painter.blit(dirty_rect.location(), m_front_store->bitmap(), dirty_rect, 1.0f, false);
|
||||
|
||||
m_back_store->bitmap().set_volatile();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue