mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
WindowManager should only flush pixels inside the screen rect.
This commit is contained in:
parent
8d78b0a8df
commit
84ae4e5880
Notes:
sideshowbarker
2024-07-19 16:04:11 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/84ae4e58806
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…
Add table
Reference in a new issue