mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +00:00
Fix broken focus rects (due to yet another Rect semantics bug.)
This commit is contained in:
parent
c0c1c88f9b
commit
20156f9ec5
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue