summaryrefslogtreecommitdiff
path: root/Widgets/Painter.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-12 17:34:47 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-12 17:34:47 +0100
commit20156f9ec54e45a65bbb7c8765710d7027ee1c1d (patch)
treeb1bab491e88d41c1aec5e31dc956ed7b107efd64 /Widgets/Painter.cpp
parentc0c1c88f9b29e988e0c2960a4d3efad18abefaf8 (diff)
downloadserenity-20156f9ec54e45a65bbb7c8765710d7027ee1c1d.zip
Fix broken focus rects (due to yet another Rect semantics bug.)
Diffstat (limited to 'Widgets/Painter.cpp')
-rw-r--r--Widgets/Painter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Widgets/Painter.cpp b/Widgets/Painter.cpp
index 1c50881480..03f403e9f2 100644
--- a/Widgets/Painter.cpp
+++ b/Widgets/Painter.cpp
@@ -58,9 +58,9 @@ void Painter::draw_rect(const Rect& rect, Color color)
bits[x] = color.value();
}
} else {
- if (r.left() >= m_clip_rect.left() && r.left() < m_clip_rect.right())
+ if (r.left() >= m_clip_rect.left() && r.left() <= m_clip_rect.right())
bits[r.left()] = color.value();
- if (r.right() >= m_clip_rect.left() && r.right() < m_clip_rect.right())
+ if (r.right() >= m_clip_rect.left() && r.right() <= m_clip_rect.right())
bits[r.right()] = color.value();
}
}