1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00

LibGUI: Copy alpha channel as-is when keeping backing bitmaps in sync

This commit is contained in:
Tom 2021-02-21 15:40:54 -07:00 committed by Andreas Kling
parent 3084291625
commit 2677e24a99

View file

@ -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();
}