mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
Fix broken focus rects (due to yet another Rect semantics bug.)
This commit is contained in:
parent
c0c1c88f9b
commit
20156f9ec5
Notes:
sideshowbarker
2024-07-19 16:03:52 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/20156f9ec54
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
Reference in a new issue