mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
Merge pull request #8284 from ChillerDragon/pr_newline_cursor
Always update text cursor y (closed #8282)
This commit is contained in:
commit
3fc6ee4349
|
@ -1612,7 +1612,6 @@ public:
|
|||
bool HasCursor = false;
|
||||
|
||||
const SGlyph *pLastGlyph = nullptr;
|
||||
bool GotNewLine = false;
|
||||
bool GotNewLineLast = false;
|
||||
|
||||
int ColorOption = 0;
|
||||
|
@ -1902,7 +1901,6 @@ public:
|
|||
{
|
||||
if(!StartNewLine())
|
||||
break;
|
||||
GotNewLine = true;
|
||||
GotNewLineLast = true;
|
||||
}
|
||||
else
|
||||
|
@ -1998,11 +1996,9 @@ public:
|
|||
|
||||
// even if no text is drawn the cursor position will be adjusted
|
||||
pCursor->m_X = DrawX;
|
||||
pCursor->m_Y = DrawY;
|
||||
pCursor->m_LineCount = LineCount;
|
||||
|
||||
if(GotNewLine)
|
||||
pCursor->m_Y = DrawY;
|
||||
|
||||
TextContainer.m_BoundingBox = pCursor->BoundingBox();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue