mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:07:35 +00:00
WindowServer: Prepare dirty rects if only the frame was invalidated
This commit is contained in:
parent
5e7abea31e
commit
c57d719d62
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