diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-12 22:50:28 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-12 22:50:28 +0200 |
commit | aceedaf9570bde8e5d0fcf6858b0aa930b0251b0 (patch) | |
tree | ee4180ece23427a4662fb6f5362c899f0f52be87 /Widgets/Rect.h | |
parent | b5ff34174db11a3c79e27f8a96d67318834f0e7e (diff) | |
download | serenity-aceedaf9570bde8e5d0fcf6858b0aa930b0251b0.zip |
Clip Painter operations to the screen rect.
Diffstat (limited to 'Widgets/Rect.h')
-rw-r--r-- | Widgets/Rect.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Widgets/Rect.h b/Widgets/Rect.h index 98b0d865ff..e9f638ada4 100644 --- a/Widgets/Rect.h +++ b/Widgets/Rect.h @@ -42,7 +42,7 @@ public: bool contains(int x, int y) const { - return x >= m_location.x() && x <= right() && y >= m_location.y() && y <= bottom(); + return x >= m_location.x() && x < right() && y >= m_location.y() && y < bottom(); } bool contains(const Point& point) const |