mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 03:59:36 +00:00
Fixed selection drawing out of bounds in multi-line editbox
This commit is contained in:
@@ -780,7 +780,7 @@ namespace PortabilityLayer
|
|||||||
const Rect midLinesRect = Rect::Create(globalSelStart.m_y + lineGap, m_rect.left, globalSelEnd.m_y, m_rect.right).Intersect(m_rect);
|
const Rect midLinesRect = Rect::Create(globalSelStart.m_y + lineGap, m_rect.left, globalSelEnd.m_y, m_rect.right).Intersect(m_rect);
|
||||||
surface->FillRect(midLinesRect, focusColor);
|
surface->FillRect(midLinesRect, focusColor);
|
||||||
|
|
||||||
Rect lastLineRect = Rect::Create(globalSelEnd.m_y, m_rect.left, globalSelEnd.m_y + lineGap, globalSelEnd.m_x);
|
Rect lastLineRect = Rect::Create(globalSelEnd.m_y, m_rect.left, globalSelEnd.m_y + lineGap, globalSelEnd.m_x).Intersect(m_rect);
|
||||||
if (endIsLineBreak || (m_isMultiLine == false && m_selEndChar == m_length))
|
if (endIsLineBreak || (m_isMultiLine == false && m_selEndChar == m_length))
|
||||||
lastLineRect.right = m_rect.right;
|
lastLineRect.right = m_rect.right;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user