Fix broken focus rects (due to yet another Rect semantics bug.)

This commit is contained in:
Andreas Kling 2019-01-12 17:34:47 +01:00
parent c0c1c88f9b
commit 20156f9ec5
Notes: sideshowbarker 2024-07-19 16:03:52 +09:00

View file

@ -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();
}
}