mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 22:18:19 +00:00
Merge pull request #7798 from Robyt3/Textrender-Selection-Fix
Fix multi-line text selection not rendered correctly anymore
This commit is contained in:
commit
a7ac29d5bf
|
@ -1867,7 +1867,7 @@ public:
|
|||
|
||||
if(SelectionStarted && IsRendered)
|
||||
{
|
||||
if(!vSelectionQuads.empty() && SelectionQuadLine == pCursor->m_LineCount)
|
||||
if(!vSelectionQuads.empty() && SelectionQuadLine == LineCount)
|
||||
{
|
||||
vSelectionQuads.back().m_Width += SelWidth;
|
||||
}
|
||||
|
@ -1877,7 +1877,7 @@ public:
|
|||
const float SelectionY = DrawY + (1.0f - pCursor->m_SelectionHeightFactor) * SelectionHeight;
|
||||
const float ScaledSelectionHeight = pCursor->m_SelectionHeightFactor * SelectionHeight;
|
||||
vSelectionQuads.emplace_back(SelX, SelectionY, SelWidth, ScaledSelectionHeight);
|
||||
SelectionQuadLine = pCursor->m_LineCount;
|
||||
SelectionQuadLine = LineCount;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue