mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
WindowServer: Prepare dirty rects if only the frame was invalidated
This commit is contained in:
parent
5e7abea31e
commit
c57d719d62
Notes:
sideshowbarker
2024-07-18 21:45:56 +09:00
Author: https://github.com/tomuta
Commit: c57d719d62
Pull-request: https://github.com/SerenityOS/serenity/pull/5618
Issue: https://github.com/SerenityOS/serenity/issues/5599
1 changed files with 8 additions and 0 deletions
|
@ -576,6 +576,14 @@ void Window::prepare_dirty_rects()
|
||||||
m_dirty_rects = rect();
|
m_dirty_rects = rect();
|
||||||
} else {
|
} else {
|
||||||
m_dirty_rects.move_by(frame().render_rect().location());
|
m_dirty_rects.move_by(frame().render_rect().location());
|
||||||
|
if (m_invalidated_frame) {
|
||||||
|
if (m_invalidated) {
|
||||||
|
m_dirty_rects.add(frame().render_rect());
|
||||||
|
} else {
|
||||||
|
for (auto& rects : frame().render_rect().shatter(rect()))
|
||||||
|
m_dirty_rects.add(rects);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue