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 /LibGUI/GStatusBar.cpp | |
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 'LibGUI/GStatusBar.cpp')
-rw-r--r-- | LibGUI/GStatusBar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGUI/GStatusBar.cpp b/LibGUI/GStatusBar.cpp index 6a72ec32f8..fbb8656d59 100644 --- a/LibGUI/GStatusBar.cpp +++ b/LibGUI/GStatusBar.cpp @@ -35,6 +35,6 @@ String GStatusBar::text() const void GStatusBar::paint_event(GPaintEvent& event) { GPainter painter(*this); - painter.set_clip_rect(event.rect()); + painter.add_clip_rect(event.rect()); StylePainter::the().paint_surface(painter, rect(), !spans_entire_window_horizontally()); } |