WindowManager should only flush pixels inside the screen rect.

This commit is contained in:
Andreas Kling 2019-01-12 16:41:03 +01:00
parent 8d78b0a8df
commit 84ae4e5880

View file

@ -351,9 +351,10 @@ void WindowManager::invalidate(const Window& window)
invalidate(outerRectForWindow(window.rect()));
}
void WindowManager::flush(const Rect& rect)
void WindowManager::flush(const Rect& a_rect)
{
auto& framebuffer = FrameBuffer::the();
auto rect = Rect::intersection(a_rect, framebuffer.rect());
for (int y = rect.top(); y <= rect.bottom(); ++y) {
auto* front_scanline = m_front_bitmap->scanline(y);