diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-29 15:01:54 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-29 15:01:54 +0100 |
commit | f249c40aaa8101743b1ecc245c6c7c3b4ec7122e (patch) | |
tree | 543c9d193a8772a30a77377834a98dfd7518a390 /Servers | |
parent | 474340b9cdea76ca3e574a56d4681d1e7641c3a7 (diff) | |
download | serenity-f249c40aaa8101743b1ecc245c6c7c3b4ec7122e.zip |
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.
Diffstat (limited to 'Servers')
-rw-r--r-- | Servers/WindowServer/WSWindowManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Servers/WindowServer/WSWindowManager.cpp b/Servers/WindowServer/WSWindowManager.cpp index 7e14d5a59e..2de9c04b98 100644 --- a/Servers/WindowServer/WSWindowManager.cpp +++ b/Servers/WindowServer/WSWindowManager.cpp @@ -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; |