浏览代码

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

Tom 4 年之前
父节点
当前提交
2677e24a99
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Libraries/LibGUI/Window.cpp

+ 1 - 1
Userland/Libraries/LibGUI/Window.cpp

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