mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
WindowManager should only flush pixels inside the screen rect.
This commit is contained in:
parent
8d78b0a8df
commit
84ae4e5880
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue