mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:38:12 +00:00
Rename Painter::set_clip_rect() to add_clip_rect().
It was confusing to see multiple calls to set_foo() in a row. Since this is an intersecting operation, let's call it add_clip_rect() instead.
This commit is contained in:
parent
474340b9cd
commit
f249c40aaa
18 changed files with 28 additions and 28 deletions
|
@ -952,12 +952,12 @@ void WSWindowManager::compose()
|
|||
if (!any_dirty_rect_intersects_window(window))
|
||||
return IterationDecision::Continue;
|
||||
PainterStateSaver saver(*m_back_painter);
|
||||
m_back_painter->set_clip_rect(outer_window_rect(window));
|
||||
m_back_painter->add_clip_rect(outer_window_rect(window));
|
||||
for (auto& dirty_rect : dirty_rects.rects()) {
|
||||
if (any_opaque_window_above_this_one_contains_rect(window, dirty_rect))
|
||||
continue;
|
||||
PainterStateSaver saver(*m_back_painter);
|
||||
m_back_painter->set_clip_rect(dirty_rect);
|
||||
m_back_painter->add_clip_rect(dirty_rect);
|
||||
paint_window_frame(window);
|
||||
if (!backing_store)
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue